Top |
guint | data-len | Read / Write / Construct |
int | dof | Read / Write / Construct |
guint | fparam-len | Read / Write / Construct |
guint | func-eval | Read / Write |
guint | grad-eval | Read / Write |
gboolean | is-best-fit | Read / Write |
gboolean | is-least-squares | Read / Write / Construct |
guint | niters | Read / Write |
NcmFitState * ncm_fit_state_new (guint data_len
,guint fparam_len
,gint dof
,gboolean is_least_squares
);
Instantiates a new NcmFitState.
NcmFitState *
ncm_fit_state_ref (NcmFitState *fstate
);
Increases the reference count of fstate
by one.
void
ncm_fit_state_free (NcmFitState *fstate
);
Decreases the reference count of fstate
by one.
void
ncm_fit_state_clear (NcmFitState **fstate
);
Decreases the reference count of *fstate
by one, and sets the pointer *fstate
to NULL.
void ncm_fit_state_set_all (NcmFitState *fstate
,guint data_len
,guint fparam_len
,gint dof
,gboolean is_least_squares
);
Sets all the properties of fstate
.
void
ncm_fit_state_reset (NcmFitState *fstate
);
Resets the NcmFitState to its initial state.
void ncm_fit_state_set_ls (NcmFitState *fstate
,NcmVector *f
,NcmMatrix *J
);
Sets the least squares data of fstate
.
This method is used by NcmFit implementations to set the precision of the parameters. It should not be used by the user.
void ncm_fit_state_set_fparam_len (NcmFitState *fstate
,guint fparam_len
);
Sets the number of free parameters of fstate
.
This method is used by NcmFit implementations to set fstate
state.
It should not be used by the user.
guint
ncm_fit_state_get_fparam_len (NcmFitState *fstate
);
Gets the number of free parameters of fstate
.
void ncm_fit_state_set_data_len (NcmFitState *fstate
,guint data_len
);
Sets the number of data points used to compute fstate
.
guint
ncm_fit_state_get_data_len (NcmFitState *fstate
);
Gets the number of data points used to compute fstate
.
void ncm_fit_state_set_dof (NcmFitState *fstate
,gint dof
);
Sets the degrees of freedom of fstate
.
This method is used by NcmFit implementations to set fstate
state.
It should not be used by the user.
gint
ncm_fit_state_get_dof (NcmFitState *fstate
);
Gets the degrees of freedom of fstate
.
void ncm_fit_state_add_iter (NcmFitState *fstate
,guint niter
);
Adds niter
to the number of iterations of fstate
.
void ncm_fit_state_set_niter (NcmFitState *fstate
,guint niter
);
Sets the number of iterations of fstate
.
This method is used by NcmFit implementations to set fstate
state.
It should not be used by the user.
guint
ncm_fit_state_get_niter (NcmFitState *fstate
);
Gets the number of iterations of fstate
.
void ncm_fit_state_add_func_eval (NcmFitState *fstate
,guint func_eval
);
Adds func_eval
to the number of function evaluations of fstate
.
This method is used by NcmFit implementations to set fstate
state.
It should not be used by the user.
void ncm_fit_state_set_func_eval (NcmFitState *fstate
,guint func_eval
);
Sets the number of function evaluations of fstate
.
This method is used by NcmFit implementations to set fstate
state.
It should not be used by the user.
guint
ncm_fit_state_get_func_eval (NcmFitState *fstate
);
Gets the number of function evaluations of fstate
.
void ncm_fit_state_add_grad_eval (NcmFitState *fstate
,guint grad_eval
);
Adds grad_eval
to the number of gradient evaluations of fstate
.
This method is used by NcmFit implementations to set fstate
state.
It should not be used by the user.
void ncm_fit_state_set_grad_eval (NcmFitState *fstate
,guint grad_eval
);
Sets the number of gradient evaluations of fstate
.
This method is used by NcmFit implementations to set fstate
state.
It should not be used by the user.
guint
ncm_fit_state_get_grad_eval (NcmFitState *fstate
);
Gets the number of gradient evaluations of fstate
.
void ncm_fit_state_set_m2lnL_prec (NcmFitState *fstate
,gdouble prec
);
Sets the precision of the m2lnL of fstate
.
This method is used by NcmFit implementations to set fstate
state.
It should not be used by the user.
gdouble
ncm_fit_state_get_m2lnL_prec (NcmFitState *fstate
);
Gets the precision of the m2lnL of fstate
.
void ncm_fit_state_set_m2lnL_curval (NcmFitState *fstate
,gdouble m2lnL_curval
);
Sets the current value of the m2lnL of fstate
.
This method is used by NcmFit implementations to set fstate
state.
It should not be used by the user.
gdouble
ncm_fit_state_get_m2lnL_curval (NcmFitState *fstate
);
Gets the current value of the m2lnL of fstate
.
void ncm_fit_state_set_params_prec (NcmFitState *fstate
,gdouble prec
);
Sets the precision of the parameters of fstate
.
This method is used by NcmFit implementations to set the precision of the parameters. It should not be used by the user.
gdouble
ncm_fit_state_get_params_prec (NcmFitState *fstate
);
Gets the precision of the parameters of fstate
.
void ncm_fit_state_set_elapsed_time (NcmFitState *fstate
,gdouble elapsed_time
);
Sets the elapsed time of fstate
.
This method is used by NcmFit implementations to set fstate
state.
It should not be used by the user.
gdouble
ncm_fit_state_get_elapsed_time (NcmFitState *fstate
);
Gets the elapsed time of fstate
.
void ncm_fit_state_set_has_covar (NcmFitState *fstate
,gboolean has_covar
);
Sets whether fstate
has a computed covariance matrix.
gboolean
ncm_fit_state_has_covar (NcmFitState *fstate
);
Checks if fstate
has a computed covariance matrix.
void ncm_fit_state_set_is_best_fit (NcmFitState *fstate
,gboolean is_best_fit
);
Sets whether fstate
is a best fit.
gboolean
ncm_fit_state_is_best_fit (NcmFitState *fstate
);
Checks if fstate
is a best fit.
void ncm_fit_state_set_is_least_squares (NcmFitState *fstate
,gboolean is_least_squares
);
Sets whether fstate
is a least squares fit.
gboolean
ncm_fit_state_is_least_squares (NcmFitState *fstate
);
Checks if fstate
is a least squares fit.
NcmVector *
ncm_fit_state_peek_fparams (NcmFitState *fstate
);
Gets the free parameters NcmVector of fstate
.
NcmMatrix *
ncm_fit_state_peek_hessian (NcmFitState *fstate
);
Gets the Hessian NcmMatrix of fstate
.
NcmMatrix *
ncm_fit_state_peek_covar (NcmFitState *fstate
);
Gets the covariance NcmMatrix of fstate
.
NcmVector *
ncm_fit_state_peek_f (NcmFitState *fstate
);
Gets the function NcmVector of fstate
.
NcmMatrix *
ncm_fit_state_peek_J (NcmFitState *fstate
);
Gets the Jacobian NcmMatrix of fstate
.
“data-len”
property “data-len” guint
Data length.
Owner: NcmFitState
Flags: Read / Write / Construct
Default value: 0
“dof”
property “dof” int
Degrees of freedom.
Owner: NcmFitState
Flags: Read / Write / Construct
Default value: 0
“fparam-len”
property “fparam-len” guint
Free parameters length.
Owner: NcmFitState
Flags: Read / Write / Construct
Default value: 0
“func-eval”
property “func-eval” guint
Number of function evaluations.
Owner: NcmFitState
Flags: Read / Write
Default value: 0
“grad-eval”
property “grad-eval” guint
Number of gradient evaluations.
Owner: NcmFitState
Flags: Read / Write
Default value: 0
“is-best-fit”
property “is-best-fit” gboolean
Is a best fit state.
Owner: NcmFitState
Flags: Read / Write
Default value: FALSE
“is-least-squares”
property “is-least-squares” gboolean
Is a least squares fit state.
Owner: NcmFitState
Flags: Read / Write / Construct
Default value: FALSE