#include <Laplace.hpp>
Inheritance diagram for Laplace:
Public Member Functions | |
Laplace () | |
Construtor. | |
Laplace (uint dim) | |
Construtor. | |
Laplace (uint dim, vector< double > const &mu, vector< double > const &lambda) | |
Construtor. | |
~Laplace () | |
Destrutor. | |
void | DeleteAll () |
Free all used memory. | |
void | Simulate (vector< double > &X) |
Simulate. | |
double | LogDensity (vector< double > const &X) |
Compute the log density. | |
void | Set_Mu (vector< double > const &m) |
Set the mean/position parameter. | |
void | Set_Lambda (vector< double > const &lam) |
Set the shape paramter. | |
void | Estimate_Mu (Spatial_Data *spatd, vector< double > const &freqs) |
Estimate the mean/position parameter. | |
void | Estimate_Lambda (Spatial_Data *spatd, vector< double > const &freqs) |
Estimate the shape paramter. | |
void | Estimate (Spatial_Data *spatd, vector< double > const &freqs) |
Stimate all the parameters. | |
void | Init_at_random (Spatial_Data *spatd) |
Initialize at random. | |
void | Read_Params (istream &is) |
Read all parameters from a stream. | |
void | Write_Params (ostream &os) |
Write all parameters to a stream. | |
uint | Degrees_Of_Freedom () |
Number of free parameters. | |
void | Info () |
info |
|
Simulate F^(-1) (p) = mu - lambda * sign(p-0.5) * Log( 1 - fabs( 2 * p - 1) ) Reimplemented from Distribution. |