Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
List of all members
npstat::UnitMapInterpolationND Class Reference
Inheritance diagram for npstat::UnitMapInterpolationND:
Detailed DescriptionThis class interpolates multivariate statistical distributions by conditional quantiles (which is a particular mapping from the unit cube into the density support region). Interpolation weights are to be calculated outside of this class. Constructor & Destructor Documentation◆ UnitMapInterpolationND()
The first constructor argument is the dimensionality of the density support, the second is the number of distributions which will be used in the interpolation. That number, in general, will depend on the dimensionality of the parameter space. After the object is constructed, the distributions should be added with the "add" method. It is possible to add more than "nInterpolated" distributions (which will result in a slightly less efficient code), however the user must add at least "nInterpolated" distributions before calling the "density" method. All interpolated distributions must have their unit cube mapping implemented by conditional quantiles (so that their "mappedByQuantiles" method returns "true"). This class does not make copies of the interpolated distributions and works with references and pointers (making internal copies would result in a significant performance hit in a variety of typical situations). This means that all added distributions must still exist while this object is in use. It is the responsibility of the user of this class to make sure that this is indeed the case. Member Function Documentation◆ add()
In this method, "d" must refer to a distribution for which "mappedByQuantiles" method returns "true". Implements npstat::AbsInterpolationAlgoND. ◆ classId()
Method needed for "geners" I/O Implements npstat::AbsDistributionND. ◆ clear()
Clear all the terms in the weighted sum Implements npstat::AbsInterpolationAlgoND. ◆ clone()
"Virtual copy constructor" Implements npstat::AbsInterpolationAlgoND. ◆ density()
Probability density Implements npstat::AbsDistributionND. ◆ mappedByQuantiles()
The following method should return "true" in case the "unitMap" method is implemented by a sequence of conditional quantile functions. Distributions with such maps permit quantile-based interpolation procedures. Implements npstat::AbsDistributionND. ◆ normalizeAutomatically()
This method should be called to disable (and later enable) automatic weight normalization if you want to use the "setWeight" or "replace" methods many times and, especially, if at some point in this process the sum of the weights becomes zero. The "density" and "unitMap" methods can not be called if normalization is not enabled. Implements npstat::AbsInterpolationAlgoND. ◆ setWeight()
Set the weight for the given term in the weighted sum Implements npstat::AbsInterpolationAlgoND. ◆ size()
The number of terms in the weighted sum Implements npstat::AbsInterpolationAlgoND. ◆ unitMap()
Mapping from the unit hypercube into the density support region. Note that "bufLen" does not have to be equal to the dimensionality of the function. There may be an efficient way to generate just the leading dimensions in case "bufLen" is smaller than the dimensionality. Implements npstat::AbsDistributionND. The documentation for this class was generated from the following file: Generated by 1.9.1 |