vcurve

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 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 {
	X float64
	Y float64
}

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
	X []float64
	Y []float64
}

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 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