bernstein: Fit a Bernstein polynomial approximation.
Description
Fits the basis of Bernstein polynomial functions to given real-valued
function f of \([0,1]^d\) where \(d=\)dims, against
a regular lattice of \(k+1\) points in each dimension for given
k. Note the approximation is not the iterated variant.
Usage
bernstein(f, dims, k = 10)
Arguments
f
a function to be approximated.
dims
the function f's domain dimension.
k
the lattice resolution of approximation.
Value
an S3 object of class bernstein.
References
Francesco Ald<U+00E0> and Benjamin I. P. Rubinstein. "The Bernstein Mechanism:
Function Release under Differential Privacy", in Proceedings of the 31st
AAAI Conference on Artificial Intelligence (AAAI'2017), pp. 1705-1711,
Feb 2017.