public interface CostFunction
Modifier and Type | Method and Description |
---|---|
double |
getCost(double[] theta)
returns the cost for a current assignment to the parameter vector theta.
|
double |
getPartialDerivation(double[] theta,
int i)
returns the partial derivation of the i-th index of the function
|
double getCost(double[] theta)
theta
- double[] the parameter vectordouble getPartialDerivation(double[] theta, int i)
theta
- the weight vectorindex
- the index of the weight, of which the derivative is to be returned.