FunctionFitter

public static class FunctionFitter
Provides fitting of standard function shapes through arbitrary (x,y) samples.

Methods

Fit

#
Fit a function of a specific kind through a set of samples, discarding poorly fitted samples between fitting rounds.
public static Function Fit(
samples,
Samples to fit. Samples with non-finite coordinates are ignored.
kind,
Kind of function to fit.
metric,
Error metric to minimise.
trimming,
Mechanism for discarding poorly fitted samples.
threshold,
Trimming threshold, interpreted by the trimming mechanism.
out int[]
indices
Indices of the samples used in the final fit, in ascending order.
)
Fitted function, or null if the samples do not suffice or no fit could be computed.

Fit

#
Fit a function of a specific kind through a set of samples.
public static Function Fit(
samples,
Samples to fit. Samples with non-finite coordinates are ignored.
kind,
Kind of function to fit.
metric
Error metric to minimise.
)
Fitted function, or null if the samples do not suffice or no fit could be computed.