Interface representing a chunk of pacing data.

interface PaceChunk {
    constraints: (number | () => number)[];
    delay: number;
    dist: number;
    factor: number;
    factors: factors.Factors;
    np: number;
    points: Types.PlanPoint[];
    status?: PaceChunkStatus;
    calculate(): void;
}

Properties

constraints: (number | () => number)[]

An array of constraints, which can be numbers or functions returning numbers.

delay: number

The delay associated with the chunk (seconds).

dist: number

The distance associated with the chunk (kilometer).

factor: number

The factor associated with the chunk.

factors: factors.Factors

The factors associated with the chunk.

np: number

The normalized pace for the chunk (seconds/kilometer).

points: Types.PlanPoint[]

An array of plan points associated with the chunk.

The status of the chunk, which may include success, tests, and iterations.

Methods

  • Calculates the pacing data for the chunk.

    Returns void