Evaluate the quadrature weight at given points.
Numeric.poly.weight(samples, family = 'chebyshev')Evaluates the weight function at each point.
- Parameters:
samples: Point or points where weights are computedfamily: Quadrature weight family
- Returns: Weights matching the input shape
- NumPy: Covers
np.polynomial.chebyshev.chebweight,np.polynomial.legendre.legweight,np.polynomial.hermite.hermweight,np.polynomial.hermite_e.hermeweight,np.polynomial.laguerre.lagweightthrough a single Numerix method.
import Numeric from '@neabyte/numerix'
const value = Numeric.poly.weight(1)
console.log(value)
// Infinityimport Numeric from '@neabyte/numerix'
const value = Numeric.poly.weight(0)
console.log(value)
// 1import Numeric from '@neabyte/numerix'
const values = Numeric.poly.weight([0, 1])
console.log(values)
// [1,Infinity]import Numeric from '@neabyte/numerix'
const value = Numeric.poly.weight(0, 'legendre')
console.log(value)
// 1