edu.stanford.nlp.optimization
Class ResultStoringFloatMonitor

java.lang.Object
  extended by edu.stanford.nlp.optimization.ResultStoringFloatMonitor
All Implemented Interfaces:
FloatFunction

public class ResultStoringFloatMonitor
extends Object
implements FloatFunction

Author:
Galen Andrew

Constructor Summary
ResultStoringFloatMonitor(int outputFreq, String filename)
           
 
Method Summary
 int domainDimension()
          Returns the number of dimensions in the function's domain
 float valueAt(float[] 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

ResultStoringFloatMonitor

public ResultStoringFloatMonitor(int outputFreq,
                                 String filename)
Method Detail

valueAt

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

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

domainDimension

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

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


Stanford NLP Group