Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkLinearSplitting_h
14 #define mitkLinearSplitting_h
16 #include <vigra/multi_array.hxx>
17 #include <vigra/random_forest.hxx>
22 template<
class TLossAccumulator>
49 template <
class TDataSourceFeature,
50 class TDataSourceLabel,
53 void operator()(TDataSourceFeature
const &column,
54 TDataSourceLabel
const &labels,
57 TArray
const ®ionResponse);
59 template <
class TDataSourceLabel,
65 TArray
const & regionResponse);
74 return m_MinimumThreshold;
79 return m_MinimumIndex;
84 return m_BestCurrentCounts;
88 bool m_UsePointWeights;
89 bool m_UseRandomSplit;
92 vigra::ArrayVector<double> m_ClassWeights;
93 vigra::ArrayVector<double> m_BestCurrentCounts[2];
95 double m_MinimumThreshold;
96 std::ptrdiff_t m_MinimumIndex;
97 vigra::ProblemSpec<> m_ExtParameter;
102 #include <../src/Splitter/mitkLinearSplitting.cpp>
double GetMinimumThreshold()
bool IsUsingPointWeights()
AdditionalRFDataAbstract * GetAdditionalData() const
DataCollection - Class to facilitate loading/accessing structured data.
vigra::ArrayVector< double > * GetBestCurrentCounts()
WeightContainerType GetPointWeights()
void SetAdditionalData(AdditionalRFDataAbstract *data)
void set_external_parameters(vigra::ProblemSpec< T > const &ext)
void operator()(TDataSourceFeature const &column, TDataSourceLabel const &labels, TDataIterator &begin, TDataIterator &end, TArray const ®ionResponse)
std::ptrdiff_t GetMinimumIndex()
void SetPointWeights(WeightContainerType weight)
void UseRandomSplit(bool randomSplit)
double LossOfRegion(TDataSourceLabel const &labels, TDataIterator &begin, TDataIterator &end, TArray const ®ionResponse)
TWeightContainer WeightContainerType
void UsePointWeights(bool pointWeight)
bool IsUsingRandomSplit()
TLossAccumulator::WeightContainerType TWeightContainer