public

Inheritance Graph

graph BT
	SampleDistributions
	click SampleDistributions "classMinSG_1_1AGVS_1_1SampleDistributions"

Description

Class for generating samples based on different distributions.

Classes

   
struct MinSG::AGVS::SampleDistributions::Implementation

Public Functions

   
   
  SampleDistributions(const Geometry::Box & viewSpaceBounds, const GroupNode * scene)
   
  ~SampleDistributions()
   
Sample < float > generateSample() const
   
void updateWithSample(const Sample < float > & sample, const contribution_t & contribution, ValuatedRegionNode * viewCell)
   
void calculateDistributionProbabilities()
   
bool terminate() const

Documentation

function
MinSG::AGVS::SampleDistributions::SampleDistributions

public
     
     
SampleDistributions( const Geometry::Box & viewSpaceBounds,
  const GroupNode * scene
)    

Defined in MinSG/Ext/AdaptiveGlobalVisibilitySampling/SampleDistributions.h:36


function
MinSG::AGVS::SampleDistributions::~SampleDistributions

public
   
   
~SampleDistributions( )

Defined in MinSG/Ext/AdaptiveGlobalVisibilitySampling/SampleDistributions.h:38


function
MinSG::AGVS::SampleDistributions::generateSample

public const
   
   
Sample < float > generateSample( ) const

Generate a sample from a random sample distribution.

See also: section 4.2 “Adaptive Mixture Distribution”

Defined in MinSG/Ext/AdaptiveGlobalVisibilitySampling/SampleDistributions.h:45


function
MinSG::AGVS::SampleDistributions::updateWithSample

public
     
     
void updateWithSample( const Sample < float > & sample,
  const contribution_t & contribution,
  ValuatedRegionNode * viewCell
)    

Use the contribution of a sample to update the contribution of the sample distributions.

Parameters

sample
New sample used to update the view cells
contribution
Pair of forward and backward contribution of the sample
viewCell
View cell containing the origin of the sample

Defined in MinSG/Ext/AdaptiveGlobalVisibilitySampling/SampleDistributions.h:56


function
MinSG::AGVS::SampleDistributions::calculateDistributionProbabilities

public
   
   
void calculateDistributionProbabilities( )

Update the probabilities used to select the sample distribution.

See also: section 4.2 “Adaptive Mixture Distribution”

Defined in MinSG/Ext/AdaptiveGlobalVisibilitySampling/SampleDistributions.h:65


function
MinSG::AGVS::SampleDistributions::terminate

public const
   
   
bool terminate( ) const

Estimate the pixel error. Check if the estimated pixel error is below a treshold and the probability that it is similar to the real error is high.

See also: section 4.5 “Termination of the computation”

Returns

trueif the sampling is finished,falseotherwise

Defined in MinSG/Ext/AdaptiveGlobalVisibilitySampling/SampleDistributions.h:75