jphase.fit
Class MomentsACPH2Fit

java.lang.Object
  extended by jphase.fit.ContPhaseFitter
      extended by jphase.fit.MomentsContPhaseFitter
          extended by jphase.fit.MomentsACPH2Fit
All Implemented Interfaces:
PhaseFitter

public class MomentsACPH2Fit
extends MomentsContPhaseFitter

This class implements the Matching Moments method proposed by Telek and Heindl in "Matching Moments for Acyclic discrete and continuous Phase-Type distributions of Second order", 2002. This is for the continuous case.

Author:
Juan Fernando Perez

Field Summary
static double precision
          TODO get precision precision for calculations and convergence criterion
 
Fields inherited from class jphase.fit.MomentsContPhaseFitter
m1, m2, m3
 
Fields inherited from class jphase.fit.ContPhaseFitter
data, var
 
Constructor Summary
MomentsACPH2Fit(double[] data)
           
MomentsACPH2Fit(double m1, double m2, double m3)
           
 
Method Summary
 ContPhaseVar fit()
          Executes the fitting procedure to find the parameter set
 
Methods inherited from class jphase.fit.ContPhaseFitter
getLogLikelihood
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

precision

public static double precision
TODO get precision precision for calculations and convergence criterion

Constructor Detail

MomentsACPH2Fit

public MomentsACPH2Fit(double[] data)
Parameters:
data - Data to be fitted

MomentsACPH2Fit

public MomentsACPH2Fit(double m1,
                       double m2,
                       double m3)
Parameters:
m1 -
m2 -
m3 -
Method Detail

fit

public ContPhaseVar fit()
Description copied from interface: PhaseFitter
Executes the fitting procedure to find the parameter set

Specified by:
fit in interface PhaseFitter
Specified by:
fit in class ContPhaseFitter
Returns:
Phase variable found
See Also:
PhaseFitter.fit()