solutions

## Class S2Min

- java.lang.Object
- - solutions.S2Min

-     public class S2Min
      extends java.lang.Object

  Fitting a Breit-Wigner function to small sample and determining errors of parameters by MinCov

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `S2Min()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `breitWigner(double arg, double a, double gamma)` Returns a Breit-Wigner function
    `protected void` | `compute()`
    `protected boolean` | `inputOk()`
    `static void` | `main(java.lang.String[] s)`
    `protected void` | `plotScatterDiagram()`
    `double[]` | `randomBreitWigner(double a, double gamma, int n)` Returns n random numbers following a Breit-Wigner distribution with mean a and FWHM gamma

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

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

- - ### Constructor Detail

    - #### S2Min

          public S2Min()

  - ### Method Detail

    - #### inputOk

          protected boolean inputOk()

    - #### compute

          protected void compute()

    - #### plotScatterDiagram

          protected void plotScatterDiagram()

    - #### randomBreitWigner

          public double[] randomBreitWigner(double a,
                                   double gamma,
                                   int n)

      Returns n random numbers following a Breit-Wigner distribution with mean a and FWHM gamma

    - #### breitWigner

          public double breitWigner(double arg,
                           double a,
                           double gamma)

      Returns a Breit-Wigner function

    - #### main

          public static void main(java.lang.String[] s)