edu.stanford.nlp.optimization
Class ResultStoringMonitor

java.lang.Object
  extended by edu.stanford.nlp.optimization.ResultStoringMonitor
All Implemented Interfaces:
Function

public class ResultStoringMonitor
extends Object
implements Function

Author:
Galen Andrew

Constructor Summary
ResultStoringMonitor(int outputFreq, String filename)
           
 
Method Summary
 int domainDimension()
          Returns the number of dimensions in the function's domain
 double valueAt(double[] x)
          Returns the value of the function at a single point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultStoringMonitor

public ResultStoringMonitor(int outputFreq,
                            String filename)
Method Detail

valueAt

public double valueAt(double[] x)
Description copied from interface: Function
Returns the value of the function at a single point.

Specified by:
valueAt in interface Function
Parameters:
x - a double[] input
Returns:
the function value at the input

domainDimension

public int domainDimension()
Description copied from interface: Function
Returns the number of dimensions in the function's domain

Specified by:
domainDimension in interface Function
Returns:
the number of domain dimensions


Stanford NLP Group