Skip to content

Main content

Interpolation: Bernstein Basis Single Index Tool

Evaluate one bounded-degree Bernstein basis with exact combinatorial coefficient and explicit endpoint powers, including degree-zero constant basis.

Loading tool…

Description

Validate degree 0-64, index within degree, and t in [0, 1].

Bernstein basis weights describe how Bézier control points contribute to a curve at a normalized parameter. Endpoint weights and interior sensitivities are different evaluations of the same basis.

Validate degree 0-64, index within degree, and t in [0, 1].

When to use this tool

Use Interpolation: Bernstein Basis Single Index when you need one Bernstein or control-point weight.

How to use the tool and how it works

  1. Enter degree, index, t. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read result. Expand result to inspect the returned fields.

Validate degree 0-64, index within degree, and t in [0, 1]. Form the exact integer binomial coefficient before numeric conversion and multiply by t^index × (1-t)^(degree-index).1

Input fieldMeaning and unitsAccepted input
degreeNonnegative polynomial degree, with the implemented upper limit.Required. Safe integer.
indexZero-based position or diagnostic index under the calculation above; inspect any sentinel policy.Required. Safe integer.
tNormalized interpolation coordinate under the stated domain.Required. Finite number.
Output fieldInterpretationReturned shape
resultResultRequired. Object.
result.basisValueBasis ValueCalculated result member: number.
json
{
  "input": {
    "degree": 3,
    "index": 1,
    "t": 0.5
  },
  "output": {
    "result": {
      "basisValue": 0.375
    }
  }
}

Limitations and assumptions

  • The weight is floating point even though the coefficient is formed exactly; no curve values or error bound are calculated.
  • Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use all basis weights and aligned control coordinates to evaluate a complete curve or its derivatives.

References

  1. Calculation and input contract: interpolation/bernstein-basis-single-index — tool.io

Similar or alternative tools