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.
Click to show internal directories.
Click to hide internal directories.