Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Laplace Class Reference

A class representing a multidimensional Laplace distribution. More...

#include <Laplace.hpp>

Inheritance diagram for Laplace:

Distribution List of all members.

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

Detailed Description

Author:
Lemine Abdallahi
Date:
Aug. 2005


Member Function Documentation

void Laplace::Simulate vector< double > &  X  )  [virtual]
 

Simulate

F^(-1) (p) = mu - lambda * sign(p-0.5) * Log( 1 - fabs( 2 * p - 1) )

Reimplemented from Distribution.


The documentation for this class was generated from the following files:
Generated on Thu Jan 12 11:55:02 2006 for NEM by  doxygen 1.4.4