openModeller
Version 1.5.0
|
#include <openmodeller/om_defs.hh>
#include <openmodeller/Occurrence.hh>
#include <openmodeller/Configurable.hh>
#include <openmodeller/Environment.hh>
#include <openmodeller/Normalizable.hh>
#include <openmodeller/Normalizer.hh>
#include <openmodeller/refcount.hh>
#include <openmodeller/env_io/GeoTransform.hh>
#include <vector>
#include <string>
Go to the source code of this file.
Classes | |
class | OccurrencesImpl |
Typedefs | |
typedef ReferenceCountedPointer < OccurrencesImpl > | OccurrencesPtr |
typedef ReferenceCountedPointer< const OccurrencesImpl > | ConstOccurrencesPtr |
typedef std::vector< Scalar > | ScalarVector |
Functions | |
dllexp void | splitOccurrences (const OccurrencesPtr &occurrences, OccurrencesPtr &trainOccurrences, OccurrencesPtr &testOccurrences, double propTrain) |
dllexp void | splitOccurrences (const OccurrencesPtr &occurrences, OccurrencesPtr &trainOccurrences, OccurrencesPtr &testOccurrences) |
typedef ReferenceCountedPointer<const OccurrencesImpl> ConstOccurrencesPtr |
Definition at line 49 of file Occurrences.hh.
Definition at line 47 of file Occurrences.hh.
typedef std::vector<Scalar> ScalarVector |
Definition at line 51 of file Occurrences.hh.
dllexp void splitOccurrences | ( | const OccurrencesPtr & | occurrences, |
OccurrencesPtr & | trainOccurrences, | ||
OccurrencesPtr & | testOccurrences, | ||
double | propTrain | ||
) |
Splits data points into to 2 new subsets
orig | Original occurrences to split |
train | Train occurrences to be returned |
test | Test occurrences to be returned |
propTrain | Percentage of points to go to train occurrences |
Definition at line 478 of file Occurrences.cpp.
References initRandom().
Referenced by NicheMosaic::iterate(), main(), and splitSampler().
dllexp void splitOccurrences | ( | const OccurrencesPtr & | occurrences, |
OccurrencesPtr & | trainOccurrences, | ||
OccurrencesPtr & | testOccurrences | ||
) |
Splits data points into to 2 new subsets
orig | Original occurrences to split |
train | Train occurrences to be returned |
test | Test occurrences to be returned |
Definition at line 529 of file Occurrences.cpp.