class RampRegression
Container for ramp feedforward regression data.
Here's the general procedure for gathering the requisite data:
positionSamples
- position samples
powerSamples
- power (scaled voltage) samples
data class RampResult
Feedforward parameter estimates from the ramp regression and additional summary statistics |
RampRegression(timeSamples: MutableList<Double> = mutableListOf(), positionSamples: MutableList<Double> = mutableListOf(), powerSamples: MutableList<Double> = mutableListOf())
Container for ramp feedforward regression data. |
fun add(time: Double, position: Double, power: Double): Unit
Add a sample to the regression. |
|
fun fit(fitStatic: Boolean = false): RampRegression.RampResult
Fit data from a "ramp" test. |
|
fun save(file: File): Unit
Save the data to a CSV file for debugging or additional analysis. |