Package com.imsl.stat
Interface NonlinearRegression.Derivative
- All Superinterfaces:
NonlinearRegression.Function
- Enclosing class:
- NonlinearRegression
Public interface for the user supplied function to compute the
derivative for
NonlinearRegression.-
Method Summary
Modifier and TypeMethodDescriptionbooleanderivative(double[] theta, int iobs, double[] frq, double[] wt, double[] de) Computes the weight, frequency, and partial derivatives of the residual given the parameter vectorthetafor a single observation.Methods inherited from interface com.imsl.stat.NonlinearRegression.Function
f
-
Method Details
-
derivative
boolean derivative(double[] theta, int iobs, double[] frq, double[] wt, double[] de) Computes the weight, frequency, and partial derivatives of the residual given the parameter vectorthetafor a single observation.- Parameters:
theta- An inputdoublearray which contains the parameter values of the regression function. The length ofthetacorresponds to the number of unknown parameters in the regression function.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 the observationy[iobs]. Usewt= 1.0 for equal weighting (unweighted least squares).de- An outputdoublearray containing the partial derivatives of the error (residual) for observationy[iobs]. The length ofdecorresponds to the number of unknown parameters in the regression function.- 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, anddeare not output.
-