Go to the documentation of this file.
18 #ifndef viskores_filter_resampling_HistSampling_h
19 #define viskores_filter_resampling_HistSampling_h
57 this->NumberOfBins = numberOfBins;
69 this->SampleFraction = fraction;
77 this->SetSampleFraction(samplePercent);
82 return this->GetSampleFraction();
104 #endif // viskores_filter_resampling_HistSampling_h
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::Id GetNumberOfBins()
Specify the number of bins used when computing the histogram.
Definition: HistSampling.h:60
Base class for all filters.
Definition: Filter.h:171
viskores::UInt32 GetSeed()
Specify the seed used for random number generation.
Definition: HistSampling.h:91
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
#define VISKORES_DEPRECATED(...)
Definition: Deprecated.h:156
void SetSampleFraction(viskores::FloatDefault fraction)
Specify the fraction of points to create in the sampled data.
Definition: HistSampling.h:67
viskores::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:244
void SetNumberOfBins(viskores::Id numberOfBins)
Specify the number of bins used when computing the histogram.
Definition: HistSampling.h:55
viskores::FloatDefault GetSampleFraction() const
Specify the fraction of points to create in the sampled data.
Definition: HistSampling.h:72
Adaptively sample points to preserve tail features.
Definition: HistSampling.h:48
uint32_t UInt32
Base type to use for 32-bit unsigned integer numbers.
Definition: Types.h:193
void SetSeed(viskores::UInt32 seed)
Specify the seed used for random number generation.
Definition: HistSampling.h:89