public class Gcvfctn extends java.lang.Object implements UnivariateFunction
Constructor and Description |
---|
Gcvfctn(double[] _d,
double[] _fc2,
double _trS0,
int _dof0)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double f)
Evaluates the GCV function
|
double |
getLowerBound()
Gets the lower bound of the evaluation
|
double |
getUpperBound()
Gets the upper bound of the evaluation
|
void |
setBounds(double newmin,
double newmax)
Sets the new bounds
|
double |
sum(double[] v)
Computes the sum of the elements of the vector
|
public Gcvfctn(double[] _d, double[] _fc2, double _trS0, int _dof0)
_d
- the original column vector of eigenvalues_fc2
- the original row sum of squared Fourier coefficients_trS0
- the new Frobenius norm of generic part of residual matrix_dof0
- degrees of freedom in estimate of residual covariance matrix when regularization parameter is set to zeropublic double evaluate(double f)
evaluate
in interface UnivariateFunction
f
- the value at which the function is evaluatedpublic double sum(double[] v)
v
- the reference vectorpublic double getLowerBound()
getLowerBound
in interface UnivariateFunction
public double getUpperBound()
getUpperBound
in interface UnivariateFunction
public void setBounds(double newmin, double newmax)
newmin
- new minimum boundnewmax
- new maximum bound