deserializer

fun deserializer(): (List<Segment<SerializedValue>>) -> Real

Converts a list of serialized value segments into a real profile; for use with gov.nasa.ammos.aerie.procedural.timeline.plan.Plan.resource.

Accepts either a map with the form {initial: number, rate: number}, or just a plain number for piecewise constant profiles. While plain numbers are acceptable and will be converted to a LinearEquation without warning, consider using Numbers to keep the precision.