A real number profile; a function from time to real numbers.

Most real profiles are piecewise-linear, but some can be piecewise-constant if the underlying datatype is an integer. More general function types are currently unsupported.

Hierarchy

  • Real

Methods

  • Replaces all gaps in this profile with default segments taken from the argument

    Parameters

    • defaultProfile: number | Real

      number or real profile to take default values from.

    Returns Real

  • Produce an instantaneous window whenever this profile changes.

    Returns Windows

  • Produce a window whenever this profile is equal to another real profile.

    Parameters

    • other: number | Real

    Returns Windows

  • Produce a window whenever this profile is greater than to another real profile.

    Parameters

    • other: number | Real

    Returns Windows

  • Produce a window whenever this profile is greater than or equal to another real profile.

    Parameters

    • other: number | Real

    Returns Windows

  • Produce a window whenever this profile is equal to another real profile plus or minus the tolerance

    Parameters

    • other: number | Real
    • tolerance: number | Real

    Returns Windows

  • Produce a window whenever this profile is less than another real profile.

    Parameters

    • other: number | Real

    Returns Windows

  • Produce a window whenever this profile is less than or equal to another real profile.

    Parameters

    • other: number | Real

    Returns Windows

  • Create a real profile by subtracting another real profile from this.

    Parameters

    • other: number | Real

    Returns Real

  • Create a real profile where all segments are negated.

    Returns Real

  • Produce a window whenever this profile is not equal to another real profile.

    Parameters

    • other: number | Real

    Returns Windows

  • Create a real profile by adding this and another real profile together.

    Parameters

    • other: number | Real

    Returns Real

  • Create a real profile from this profile's derivative.

    Returns Real

  • Shifts the profile forward or backward in time.

    Parameters

    • duration: Duration

      duration shift each segment (can be negative)

    Returns Real

  • Create a real profile by multiplying this profile by a constant

    Parameters

    • multiplier: number

    Returns Real

  • Will use the start of the first span in the spans

    Parameters

    Returns Discrete<number>

  • Reference the real profile associated with a resource.

    Parameters

    • name: "my real resource"

    Returns Real

  • Create a constant real profile.

    Parameters

    • value: number
    • Optional rate: number
    • Optional interval: Interval

    Returns Real

Generated using TypeDoc