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