92 bool isNormalized=
false);
118 void resetNormalization();
121 int numIndependent()
const;
126 int numDependent()
const;
129 int numPresence()
const;
132 int numAbsence()
const;
151 {
return getRandomOccurrence( _presence ); }
157 {
return _presence->operator[]( index ); }
163 {
return getRandomOccurrence( _absence ); }
169 {
return _absence->operator[]( index ); }
209 OccurrencesPtr getPseudoAbsences(
const int& numPoints,
const Model& model,
const Scalar threshold=0.5,
const bool geoUnique=
false,
const bool envUnique=
false,
const int idSequenceStart=1)
const;
214 OccurrencesPtr getPseudoPresences(
const int& numPoints,
const Model& model,
const Scalar threshold=0.5,
const bool geoUnique=
false,
const bool envUnique=
false,
const int idSequenceStart=1)
const;
219 OccurrencesPtr getPseudoAbsences(
const int& numPoints,
const Sample * minimum,
const Sample * maximum,
const bool geoUnique=
false,
const bool envUnique=
false,
const int idSequenceStart=1)
const;
224 OccurrencesPtr getPseudoPresences(
const int& numPoints,
const Sample * minimum,
const Sample * maximum,
const bool geoUnique=
false,
const bool envUnique=
false,
const int idSequenceStart=1)
const;
229 int isCategorical(
int i );
234 void environmentallyUnique( );
246 void spatiallyUnique( );
266 void setEnvironmentInOccurrences();
270 void environmentallyUnique(
OccurrencesPtr& occurrencesPtr,
const char *type );
274 void spatiallyUnique(
OccurrencesPtr& occurrencesPtr,
const char *type );
EnvironmentPtr getEnvironment()
ReferenceCountedPointer< OccurrencesImpl > OccurrencesPtr
ConstOccurrencePtr getAbsence() const
double Scalar
Type of map values.
OccurrencesPtr getPresences()
virtual ConfigurationPtr getConfiguration() const =0
OccurrencesPtr getAbsences()
ConstEnvironmentPtr getEnvironment() const
dllexp void splitSampler(const SamplerPtr &orig, SamplerPtr *train, SamplerPtr *test, double propTrain)
ConstOccurrencePtr getPresence() const
dllexp SamplerPtr cloneSampler(const SamplerPtr &orig)
ConstOccurrencePtr getAbsence(int index) const
ReferenceCountedPointer< const SamplerImpl > ConstSamplerPtr
ReferenceCountedPointer< SamplerImpl > SamplerPtr
ConstOccurrencesPtr getPresences() const
ConstOccurrencePtr getPresence(int index) const
bool isNormalized() const
virtual void getMinMax(Sample *min, Sample *max) const =0
virtual void setConfiguration(const ConstConfigurationPtr &)=0
virtual void normalize(Normalizer *normalizerPtr)=0
ReferenceCountedPointer< ModelImpl > Model
ConstOccurrencesPtr getAbsences() const
dllexp SamplerPtr createSampler(const EnvironmentPtr &env, const OccurrencesPtr &presence, const OccurrencesPtr &absence=OccurrencesPtr())