FinanceModels.Fit API Reference
Exported API
Unexported API
FinanceModels.Fit.Bootstrap — Type
Bootstrap()A singleton type which is passed to fit in order to bootstrap Splines. The curves are fit such that the spline passes through the zero rates of the curve.
A subtype of FitMethod.
Examples
FinanceModels.Fit.Loss — Type
Fit.Loss(function)function should be a loss measure, such as x->x^2 or x->abs(x). This is used by the optimization algorithm in fit to determine optimal parameters as defined by this loss function.
A subtype of FitMethod.
Examples
julia> mod0 = Yield.Constant();
julia> quotes = ZCBPrice([0.9, 0.8, 0.7,0.6]);
julia> fit(mod0,quotes,Fit.Loss(x->x^2))
FinanceModels.Yield.Constant{Rate{Float64, Periodic}}(Periodic(0.12822921882254446, 1))(With UnicodePlots loaded, fitted yield models display as a zero-rate chart instead.)
Please open an issue if you encounter any issues or confusion with the package.