Trait optimization::Summation [] [src]

pub trait Summation: Function {
    fn terms(&self) -> usize;
    fn term_value(&self, position: &[f64], term: usize) -> f64;

    fn partial_value<T: IntoIterator<Item = I>, I: Borrow<usize>>(
        &self,
        position: &[f64],
        terms: T
    ) -> f64 { ... } }

Defines a summation of individual functions, i.e., f(x) = ∑ᵢ fᵢ(x).

Required Methods

Returns the number of individual functions that are terms of the summation.

Comptues the value of one individual function indentified by its index term, given the position x.

Provided Methods

Computes the partial sum over a set of individual functions identified by terms.

Implementors