jphase.fit

## Class ContPhaseFitter

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

- All Implemented Interfaces:
    PhaseFitter
  Direct Known Subclasses:
    MLContPhaseFitter, MomentsContPhaseFitter

      public abstract class ContPhaseFitter
      extends java.lang.Object
      implements PhaseFitter

  This class defines the methods and attributes for any class implementing fitting methods for Continuous Phase-Type distributions
  Version:
    1.0
  Author:
    Juan F. Pérez

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ContPhaseFitter(double[] data)` Constructor of the fitter from a data array

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract ContPhaseVar` | `fit()` Executes the fitting procedure to find the parameter set
    `double` | `getLogLikelihood()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ContPhaseFitter

          public ContPhaseFitter(double[] data)

      Constructor of the fitter from a data array
      Parameters:
        `data` - array with data to perform the fitting procedures

  - ### Method Detail

    - #### getLogLikelihood

          public double getLogLikelihood()

      Returns:
        -1 if there is no data associated to the algorithm, 0 if there has not been found a ContPhaseVar yet, or the likelihood.

    - #### fit

          public abstract ContPhaseVar fit()

      Description copied from interface: `PhaseFitter`
      Executes the fitting procedure to find the parameter set
      Specified by:
        `fit` in interface `PhaseFitter`
      Returns:
        Phase variable found
      See Also:
        `PhaseFitter.fit()`