edu.stanford.nlp.optimization
Interface DiffFunction
- All Superinterfaces:
- Function
- All Known Implementing Classes:
- DiscriminativeHMMDiffFunction
- public interface DiffFunction
- extends Function
An interface for once-differentiable double-valued functions over
double arrays. NOTE: it'd be good to have an AbstractDiffFunction
that wrapped a Function with a finite-difference approximation.
- Since:
- 1.0
- See Also:
Function
Method Summary |
double[] |
derivativeAt(double[] x)
Returns the first-derivative vector at the input location. |
derivativeAt
public double[] derivativeAt(double[] x)
- Returns the first-derivative vector at the input location.
- Parameters:
x
- a double[]
input vector
- Returns:
- the vector of first partial derivatives.
Stanford NLP Group