vcurve

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point struct {
	// contains filtered or unexported fields
}

Point is a data point with x and y coordinates.

type VCurve

type VCurve struct {
	Points []Point
}

VCurve is a struct that holds the data points for the V-curve.

type VCurveParams

type VCurveParams struct {
	A float64
	B float64
	C float64
	D float64
	// contains filtered or unexported fields
}

VCurveParams is a struct that holds the parameters for the V-curve model optisation and the data points.

func NewHyperbolicVCurve

func NewHyperbolicVCurve(data VCurve) *VCurveParams

NewHyperbolicVCurve

Creates a new VCurve object ready for applying the Levenberg-Marquardt iterative optimization technique.

The VCurve object is initialized with the data points, and initial guesses for the parameters are calculated from the input data.

func (*VCurveParams) LevenbergMarquardtOptimisation

func (p *VCurveParams) LevenbergMarquardtOptimisation() (VCurveParams, error)

LevenbergMarquardtOptimisation

LevenbergMarquardtOptimisation optimizes the hyperbolic function using the Levenberg-Marquardt algorithm.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL