V3FIT
|
Defines the base class of the type guassian_process_class. The guassian_process contains code to compuet guassian process profiles. More...
Data Types | |
type | gaussp_class |
Base class representing a gaussian process. More... | |
type | gaussp_class_pointer |
Pointer to a gaussian process object. Used for creating arrays of gaussian process pointers. This is needed because fortran does not allow arrays of pointers directly. More... | |
Functions/Subroutines | |
type(gaussp_class) function, pointer | gaussp_construct (a_model, n_signals, gaussp_type, profile_index, vrnc, tolerance, cholesky_fac) |
Construct a gaussp_class. More... | |
subroutine | gaussp_destruct (this) |
Deconstruct a gaussp_class object. More... | |
subroutine | gaussp_set_signal (this, signal, index) |
Set the object and coefficient for an index. More... | |
subroutine | gaussp_set_profile (this, a_model) |
Set the object and coefficient for an index. More... | |
real(rprec) function | gaussp_get_evidence (this, a_model) |
Calculates the evidence. More... | |
Defines the base class of the type guassian_process_class. The guassian_process contains code to compuet guassian process profiles.
type (gaussp_class) function, pointer guassian_process::gaussp_construct | ( | type (model_class), intent(in) | a_model, |
integer, intent(in) | n_signals, | ||
character(len=*), intent(in) | gaussp_type, | ||
integer, intent(in) | profile_index, | ||
real (rprec), dimension(:) | vrnc, | ||
real (rprec) | tolerance, | ||
real (rprec) | cholesky_fac | ||
) |
Construct a gaussp_class.
Allocates memory and initializes a gaussp_class object. This just allocates the gaussp_class::signals, gaussp_class::a array, and matrixices for the GP computataion. The indices of these arrays are set by gaussp_set_signal, and the matrices are calculated in gaussp_get_modeled_signal
[in] | a_model | A model::model_class instance. |
[in] | n_signals | Number of signals in this gaussian process. |
[in] | gaussp_type | The type of profile modeled by the gaussian process. |
[in] | profile_index | Index of the profile of the sxrem profile. |
[in] | vrnc | Variance values for the hyper parameters. |
[in] | tolerance | Convergence value to maximize the log evidence. |
[in] | choleskey_fac | Value added to diagnoal element to ensure K is PSD. |
Definition at line 103 of file guassian_process.f.
subroutine guassian_process::gaussp_destruct | ( | type (gaussp_class), pointer | this | ) |
Deconstruct a gaussp_class object.
Deallocates memory and uninitializes a gaussp_class object.
[in,out] | this | A gaussp_class instance. |
Definition at line 251 of file guassian_process.f.
real (rprec) function guassian_process::gaussp_get_evidence | ( | type (gaussp_class), intent(inout) | this, |
type (model_class), pointer | a_model | ||
) |
Calculates the evidence.
This method finds a gaussian process evidence. The matrices computed can be later used to set the profile.
[in] | this | A gaussp_class instance. |
[in,out] | a_model | A model instance. |
Definition at line 494 of file guassian_process.f.
subroutine guassian_process::gaussp_set_profile | ( | type (gaussp_class), intent(inout) | this, |
type (model_class), pointer | a_model | ||
) |
Set the object and coefficient for an index.
This method uses a gaussian process to set a model using the signals pointed in the gaussp_class::signals array. Hyper parameters are determined by maximizing the evidence.
[in] | this | A gaussp_class instance. |
[in,out] | a_model | A model instance. |
Definition at line 354 of file guassian_process.f.
subroutine guassian_process::gaussp_set_signal | ( | type (gaussp_class), intent(inout) | this, |
class (signal_class), pointer | signal, | ||
integer, intent(in) | index | ||
) |
Set the object and coefficient for an index.
[in,out] | this | A gaussp_class instance. |
[in] | signal | A signal_class instance. |
[in] | a | A weight for the signal |
[in] | index | The index to place the gaussp signal. |
Definition at line 323 of file guassian_process.f.