contents next up previous
Next: Basic classes Up: Algorithms Previous: Sequential Simulation, Multiple-Variable Case

Subsections

P-Field Simulation

  1. template<class gval_iterator, class forward_iterator,
             class neighborhood, class cdf, class cdf_estimator>
    void
    pfield_simulation(gval_iterator begin, gval_iterator end,
                      neigborhood* neighbors,
                      cdf& ccdf, cdf_estimator& estim,
                      forward_iterator pf_begin, forward_iterator pf_end) 

  2. template<class gval_iterator, class forward_iterator,
             class neighborhood, class cdf, class cdf_estimator>
    void
    pfield_simulation(gval_iterator begin, gval_iterator end,
                      neigborhood** first_neighbors,
                      unsigned int nb_of_neighborhoods,
                      cdf& ccdf, cdf_estimator& estim,
                      forward_iterator pf_begin, forward_iterator pf_end) 


This function performs a p-field simulation on geo-values in range [begin,end). For each geo-value, a cdf conditional to only the original data (contrary to sequential simulation where the cdf at each geo-value is conditional to both the original data and the previously simulated values) is estimated by Cdf Estimator estim. All the cdf's are then sampled using the correlated probabilities stored in range [pf_begin, pf_end) (``pf'' stands for p-field). The cdf corresponding to the geo-value that begin+i points to, is sampled using the probability that pf_begin+i points to. Hence the order in which the geo-values and the p-field values are stored is important.

Version 2 of the algorithm allows to use multiple properties to estimate each cdf.



Where defined

In header file <simulation.h>



Preconditions



Requirements on types



Remarks

The cdf corresponding to the geo-value that begin+i points to, is sampled using the probability that pf_begin+i points to. This means that the two sequences of geo-values and p-field values are tightly linked. Element i of the geo-value range and element i of the p-field form a pair. Swapping elements of either range would completely change the correlation of the simulated field. In particular, gval_iterator can not be a random path.


contents next up previous
Next: Basic classes Up: Algorithms Previous: Sequential Simulation, Multiple-Variable Case
nicolas
2002-05-07