Vixen
c7401864
csharp
public readonly ref struct FactorSpan

Factors that have already been read, so the shared scorer can combine them.

Read the guide page for this →

Remarks

⚠ The half of the pipeline that cannot stream, and it is not a shortcoming. A utility action reads its considerations one at a time and stops at the first zero, because a veto makes the rest irrelevant. An environment query cannot: a test may filter the point, and the filtering and the scoring are interleaved down one list — so a run collects what survived and hands it here, and the mean and the veto are still the one implementation.

Fields and properties (1)

  • public int Count

    How many factors there are.

Methods (2)

  • public FactorSpan(ReadOnlySpan<float> factors)

    Factors that have already been read, so the shared scorer can combine them.

  • public float Factor(int index)

    Reads one, in [0,1].

Used by (1)

  • EnvironmentQueryVixen.Ai