pub trait GradientEstimation<F: Float + FromPrimitive + Debug + FloatCore> {
// Required methods
fn gradient(
&self,
query: &ArrayView1<'_, F>,
) -> InterpolateResult<Array1<F>>;
fn gradient_multi(
&self,
queries: &ArrayView2<'_, F>,
) -> InterpolateResult<Array2<F>>;
}
Expand description
Trait for interpolators that can compute gradients
Required Methods§
Sourcefn gradient(&self, query: &ArrayView1<'_, F>) -> InterpolateResult<Array1<F>>
fn gradient(&self, query: &ArrayView1<'_, F>) -> InterpolateResult<Array1<F>>
Sourcefn gradient_multi(
&self,
queries: &ArrayView2<'_, F>,
) -> InterpolateResult<Array2<F>>
fn gradient_multi( &self, queries: &ArrayView2<'_, F>, ) -> InterpolateResult<Array2<F>>
Implementors§
impl<F: Float + FromPrimitive + Debug + ScalarOperand + 'static + for<'a> Sum<&'a F> + PartialOrd + FloatCore> GradientEstimation<F> for NaturalNeighborInterpolator<F>
Extends NaturalNeighborInterpolator with gradient estimation