common

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-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 LogarithmicFormula

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

LogarithmicFormula represents the formula y = a * ln(x) + b.

func LogarithmicFit

func LogarithmicFit(xData, yData []float64) (*LogarithmicFormula, error)

func MustLogarithmicFit

func MustLogarithmicFit(xData, yData []float64) *LogarithmicFormula

func (*LogarithmicFormula) Evaluate

func (lf *LogarithmicFormula) Evaluate(x float64) float64

Evaluate receive an x value and returns the y value of the formula.

Jump to

Keyboard shortcuts

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