cc.mallet.optimize
Class OptimizableCollection.ByGradientValue

java.lang.Object
  extended by cc.mallet.optimize.OptimizableCollection.ByGradientValue
All Implemented Interfaces:
Optimizable, Optimizable.ByGradientValue
Enclosing class:
OptimizableCollection

public class OptimizableCollection.ByGradientValue
extends java.lang.Object
implements Optimizable.ByGradientValue


Nested Class Summary
 
Nested classes/interfaces inherited from interface cc.mallet.optimize.Optimizable
Optimizable.ByBatchGradient, Optimizable.ByCombiningBatchGradient, Optimizable.ByGISUpdate, Optimizable.ByGradient, Optimizable.ByGradientValue, Optimizable.ByHessian, Optimizable.ByValue, Optimizable.ByVotedPerceptron
 
Constructor Summary
OptimizableCollection.ByGradientValue(Optimizable.ByGradientValue... ops)
           
 
Method Summary
 int getNumParameters()
           
 double getParameter(int index)
           
 void getParameters(double[] buffer)
           
 double getValue()
           
 void getValueGradient(double[] buffer)
           
 void setParameter(int index, double value)
           
 void setParameters(double[] params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptimizableCollection.ByGradientValue

public OptimizableCollection.ByGradientValue(Optimizable.ByGradientValue... ops)
Method Detail

getValueGradient

public void getValueGradient(double[] buffer)
Specified by:
getValueGradient in interface Optimizable.ByGradientValue

getValue

public double getValue()
Specified by:
getValue in interface Optimizable.ByGradientValue

getNumParameters

public int getNumParameters()
Specified by:
getNumParameters in interface Optimizable

getParameter

public double getParameter(int index)
Specified by:
getParameter in interface Optimizable

getParameters

public void getParameters(double[] buffer)
Specified by:
getParameters in interface Optimizable

setParameter

public void setParameter(int index,
                         double value)
Specified by:
setParameter in interface Optimizable

setParameters

public void setParameters(double[] params)
Specified by:
setParameters in interface Optimizable