XYFit

class XYFit(data: XYColumnarData<Double, Double, Double>, model: DifferentiableExpression<Double>, features: FeatureSet<OptimizationFeature>, pointToCurveDistance: PointToCurveDistance, pointWeight: PointWeight, xSymbol: Symbol) : OptimizationProblem<Double>

A fit problem for X-Y-Yerr data. Also known as "least-squares" problem.

Constructors

XYFit
Link copied to clipboard
fun XYFit(data: XYColumnarData<Double, Double, Double>, model: DifferentiableExpression<Double>, features: FeatureSet<OptimizationFeature>, pointToCurveDistance: PointToCurveDistance = PointToCurveDistance.byY, pointWeight: PointWeight = PointWeight.byYSigma, xSymbol: Symbol = Symbol.x)

Functions

distance
Link copied to clipboard
fun distance(index: Int): DifferentiableExpression<Double>
getFeature
Link copied to clipboard
open override fun <F : OptimizationFeature> getFeature(type: KClass<out F>): F?
weight
Link copied to clipboard
fun weight(index: Int): DifferentiableExpression<Double>

Properties

data
Link copied to clipboard
val data: XYColumnarData<Double, Double, Double>
features
Link copied to clipboard
open override val features: FeatureSet<OptimizationFeature>
model
Link copied to clipboard
val model: DifferentiableExpression<Double>
xSymbol
Link copied to clipboard
val xSymbol: Symbol

Extensions

chiSquaredOrNull
Link copied to clipboard
val XYFit.chiSquaredOrNull: Double?
Compute chi squared value for completed fit.
withFeature
Link copied to clipboard
fun XYFit.withFeature(vararg features: OptimizationFeature): XYFit

Sources

common source
Link copied to clipboard