v2026.6.4
All Bundles
Bundle Core machine learning types: the seedable Random generator, Matrix2D linear algebra and activations, matrix reference holders, the NeuralNetwork and CSV-backed MatrixReader. Compile with -lib ml.

LinearResult

Result of liner equations

Operations

GetCoefficients #

Gets the equation coefficients

method : public : GetCoefficients() ~ Float[]

Return

TypeDescription
Floatequation coefficients

GetRSquared #

Gets r-squared

method : public : GetRSquared() ~ Float

Return

TypeDescription
Floatr-squared

New # constructor

Constructor

New(coeffs:Float[], r_sqrd:Float)

Parameters

NameTypeDescription
coeffsFloatcoefficient matrix
r_sqrdFloatr-squared value

ToString #

Formats the result into a string

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation