/** * Fit an harmonic function to the observed points. * An initial guess will be automatically computed. * * @return the parameters of the harmonic function that best fits the * observed points (see the other {@link #fit(double[]) fit} method. * @throws NumberIsTooSmallException if the sample is too short for the * the first guess to be computed. * @throws ZeroException if the first guess cannot be computed because * the abscissa range is zero. */ public double[] fit() { return fit((new ParameterGuesser(getObservations())).guess()); }
/** * Fit an harmonic function to the observed points. * An initial guess will be automatically computed. * * @return the parameters of the harmonic function that best fits the * observed points (see the other {@link #fit(double[]) fit} method. * @throws NumberIsTooSmallException if the sample is too short for the * the first guess to be computed. * @throws ZeroException if the first guess cannot be computed because * the abscissa range is zero. */ public double[] fit() { return fit((new ParameterGuesser(getObservations())).guess()); }
/** * Fit an harmonic function to the observed points. * An initial guess will be automatically computed. * * @return the parameters of the harmonic function that best fits the * observed points (see the other {@link #fit(double[]) fit} method. * @throws NumberIsTooSmallException if the sample is too short for the * the first guess to be computed. * @throws ZeroException if the first guess cannot be computed because * the abscissa range is zero. */ public double[] fit() { return fit((new ParameterGuesser(getObservations())).guess()); }