maths.functions.IScalarRealFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jstat Show documentation
Show all versions of jstat Show documentation
Java Library for Statistical Analysis.
The newest version!
package maths.functions;
import datasets.VectorDouble;
public interface IScalarRealFunction extends IRealFunction {
/**
* Returns the number of coefficients
*/
int numCoeffs();
/**
* Returns the coefficients of the vector function
*/
VectorDouble getCoeffs();
/**
* Set the coefficients of the function
*/
void setCoeff(double coeff);
/**
* Returns the gradient with respect to the i-th coeff
*/
double gradient(double data);
}