JMSLTM Numerical Library 5.0.1

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
 boolean f(double[] theta, int iobs, double[] frq, double[] wt, double[] e)
          Computes the weight, frequency, and residual given the parameter vector theta for a single observation.
 

Method Detail

f

boolean f(double[] theta,
          int iobs,
          double[] frq,
          double[] wt,
          double[] e)
Computes the weight, frequency, and residual given the parameter vector theta for a single observation.

Parameters:
theta - An input double array containing the parameter values of the model. The length of theta corresponds to the number of unknown parameters in the model.
iobs - An input int value indicating the observation index. The function is evaluated at observation y[iobs].
frq - An output double array of length 1 containing the frequency for observation y[iobs].
wt - An output double array of length 1 containing the weight for observation y[iobs]. Use wt = 1.0 for equal weighting (unweighted least squares).
e - An output double array of length 1 which contains the error (residual) for observation y[iobs].
Returns:
A boolean value representing the completion indicator. true indicates iobs is less than the number of observations. false indicates iobs is greater than or equal to the number of observations and wt, freq, and e are not output.

JMSLTM Numerical Library 5.0.1

Copyright © 1970-2008 Visual Numerics, Inc.
Built July 8 2008.