# `Xb5.Bag.NonNumericInterpolationError`
[🔗](https://github.com/g-andrade/xb5_elixir/blob/1.0.0/lib/xb5/bag/non_numeric_interpolation_error.ex#L1)

Raised by `Xb5.Bag.percentile/3` when linear interpolation is required but one of the
bracketing elements is not a number.

Percentile interpolation computes a weighted average between two adjacent elements. If
either element is not numeric (e.g. an atom or a string), the result would be
meaningless, so this error is raised instead.

Fields:

  * `:value` — the non-numeric element that caused the failure.
  * `:bracket` — the full `{:between, lo, hi, t}` bracket in which the failure occurred.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
