jphase.fit

## Class MomentsACPH2Fit

- java.lang.Object
- - jphase.fit.ContPhaseFitter
  - - jphase.fit.MomentsContPhaseFitter
    - - jphase.fit.MomentsACPH2Fit

- All Implemented Interfaces:
    PhaseFitter

      public class MomentsACPH2Fit
      extends MomentsContPhaseFitter

  This class implements the moment-matching method proposed by Telek and Heindl in "Matching Moments for Acyclic discrete and continuous Phase-Type distributions of Second order", 2002. The method returns a continuous Phase-type variable.
  Version:
    1.0
  Author:
    Juan F. Perez

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static double` | `precision` TODO get precision precision for calculations and convergence criterion

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MomentsACPH2Fit(double[] data)`
    `MomentsACPH2Fit(double m1, double m2, double m3)` This constructor does not allow the determination of any parameter of the fit process

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

      `equals, 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)

      See Also:
        `MomentsContPhaseFitter.MomentsContPhaseFitter(double[])`

    - #### MomentsACPH2Fit

          public MomentsACPH2Fit(double m1,
                         double m2,
                         double m3)

      This constructor does not allow the determination of any parameter of the fit process
      See Also:
        `MomentsContPhaseFitter.MomentsContPhaseFitter(double,double,double)`

  - ### 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()`