Package com.imsl.stat
Interface NonlinearRegression.Function
- All Known Subinterfaces:
NonlinearRegression.Derivative
- Enclosing class:
- NonlinearRegression
public static interface NonlinearRegression.Function
Public interface for the user supplied function for
NonlinearRegression.-
Method Summary
Modifier and TypeMethodDescriptionbooleanf(double[] theta, int iobs, double[] frq, double[] wt, double[] e) Computes the weight, frequency, and residual given the parameter vectorthetafor a single observation.
-
Method Details
-
f
boolean f(double[] theta, int iobs, double[] frq, double[] wt, double[] e) Computes the weight, frequency, and residual given the parameter vectorthetafor a single observation.- Parameters:
theta- An inputdoublearray containing the parameter values of the model. The length ofthetacorresponds to the number of unknown parameters in the model.iobs- An inputintvalue indicating the observation index. The function is evaluated at observationy[iobs].frq- An outputdoublearray of length 1 containing the frequency for observationy[iobs].wt- An outputdoublearray of length 1 containing the weight for observationy[iobs]. Usewt= 1.0 for equal weighting (unweighted least squares).e- An outputdoublearray of length 1 which contains the error (residual) for observationy[iobs].- Returns:
- A
booleanvalue representing the completion indicator.trueindicatesiobsis less than the number of observations.falseindicatesiobsis greater than or equal to the number of observations andwt,freq, andeare not output.
-