NonlinearRegression.IFunction.f Method |
Computes the weight, frequency, and residual given the
parameter vector theta for a single
observation.
Namespace: Imsl.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxbool f(
double[] theta,
int iobs,
double[] frq,
double[] wt,
double[] e
)
Function f (
theta As Double(),
iobs As Integer,
frq As Double(),
wt As Double(),
e As Double()
) As Boolean
bool f(
array<double>^ theta,
int iobs,
array<double>^ frq,
array<double>^ wt,
array<double>^ e
)
abstract f :
theta : float[] *
iobs : int *
frq : float[] *
wt : float[] *
e : float[] -> bool
Parameters
- theta
- Type:System.Double[]
An input double array containing the parameter values of
the model.
- iobs
- Type: System.Int32
An input int value indicating the observation index.
- frq
- Type:System.Double[]
An output double array of length 1 containing the frequency
for observation y[iobs].
- wt
- Type:System.Double[]
An output double array of length 1 containing the weight
for observation y[iobs].
- e
- Type:System.Double[]
An output double array of length 1 which contains the error
(residual) for observation y[iobs].
Return Value
Type:
Boolean
A
bool 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.
Remarks
The length of theta corresponds to the number
of unknown parameters in the model.
The function is evaluated at observation y[iobs].
Use wt = 1.0 for equal weighting (unweighted
least squares).
See Also