Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

template<class DataIterator , class WeightIterator >
void QuantLib::IncrementalStatistics::addSequence ( DataIterator  begin,
DataIterator  end,
WeightIterator  wbegin 
) [inline]

adds a sequence of data to the set, each with its weight

Precondition:
weights must be positive or null

Definition at line 123 of file incrementalstatistics.hpp.

References add().

                                                {
            for (;begin!=end;++begin,++wbegin)
                add(*begin, *wbegin);
        }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index