Consumption Data
data class ConsumptionData @JvmOverloads constructor(var consumptionCurve: Map<Double, Double> = emptyMap(), var weightFactors: Map<Double, Double> = emptyMap()) : Parcelable
Constructors
Functions
Properties
Link copied to clipboard
map of points. Specifies how quickly the battery discharges or combustion engine consumption changes depending of the vehicle speed. key - Weights in kg value - Factors modifying the consumption at given weights (dimensionless), could be positive or negative Must contain at least one value, otherwise will be ignored Must be sorted from lowest to highest values To predict the values inside the specified range, interpolation between the closest points will be used. To predict the values outside the specified range, the closest specified value will be used.