Function hullWeights

    • Convex-hull barycentric weights of q over pts (Σ = 1, all ≥ 0, clamped to the hull). Closed form for K ≤ 3; Frank–Wolfe for K > 3.

      Parameters

      • q: V
      • pts: readonly V[]

      Returns number[]