Returns the amplitude and damping of the exponential fit for a data set (X, Y) using the Least Square, Least Absolute Residual, or Bisquare method.


icon

Inputs/Outputs

  • c1ddbl.png Y

    Y is the array of dependent values. Y must contain at least two points.

  • c1ddbl.png X

    X is the array of independent values. X must be the same size as Y.

  • c1ddbl.png Weight

    Weight is the array of weights for the observations (X, Y). Weight must be the same size as Y. Weight also must contain non-zero elements. If an element in Weight is less than 0, the VI uses the absolute value of the element.

    If you do not wire an input to Weight, the VI sets all elements of Weight to 1.

  • cdbl.png tolerance

    tolerance determines when to stop the iterative adjustment of amplitude and damping when you use the Least Square or Bisquare method. If the relative difference of the weighted mean error of the exponential fit in two successive iterations is less than tolerance, this VI returns the resulting amplitude and damping.

    If tolerance is less than or equal to 0, this VI sets tolerance to 0.0001. tolerance is invalid if method is Least Square and refine? is FALSE.

  • cu16.png method

    method specifies the fitting method.

    0Least Square (default)
    1Least Absolute Residual
    2Bisquare
  • cbool.png refine?

    refine? specifies whether to further refine amplitude and damping. The computation time for this VI increases if refine? is TRUE. The default is FALSE.

  • idbl.png amplitude

    amplitude returns the amplitude of the fitted model.

  • idbl.png damping

    damping returns the damping of the fitted model.

  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

  • This VI is similar to the Exponential Fit VI but does not return the y-values or weighted mean error of the fitted model.