[][src]Module rusfun::wasm

Interface module to enable the call of Rust functions using WASM

Structs

FitResult

The returned fit result from a fit() call Fields need to be accessed in JS by their getter functions that have the same name

Functions

calculate_model

Interface function between input from wasm as Vec to crate with Array1

fit

Fit using the LM algorithm for model named model_name using initial parameters p, data (x, y, sy), fitting only where there is a non-zero value in vary_p

get_function

Translates a string to a implemented function in rusfun to make them easily callable

model

Calls Rust defined model functions by their function name for given parameters and a domain