Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <float.h>
#include <string.h>
#include <stdarg.h>
#include <limits.h>
#include <locale.h>
#include <mitkLocaleSwitch.h>
#include "svm.h"
Go to the source code of this file.
Macros | |
#define | INF |
#define | TAU |
#define | Malloc(type, n) |
#define | FSCANF(_stream, _format, _var) |
Typedefs | |
typedef float | Qfloat |
typedef signed char | schar |
Functions | |
template<class T > | |
static T | min (T x, T y) |
template<class T > | |
static T | max (T x, T y) |
template<class T > | |
static void | swap (T &x, T &y) |
template<class S , class T > | |
static void | clone (T *&dst, S *src, int n) |
static double | powi (double base, int times) |
static void | print_string_stdout (const char *s) |
static void | info (const char *fmt,...) |
static void | solve_c_svc (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si, double Cp, double Cn) |
static void | solve_nu_svc (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si) |
static void | solve_one_class (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si) |
static void | solve_epsilon_svr (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si) |
static void | solve_nu_svr (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si) |
static decision_function | svm_train_one (const svm_problem *prob, const svm_parameter *param, double Cp, double Cn) |
static void | sigmoid_train (int l, const double *dec_values, const double *labels, double &A, double &B) |
static double | sigmoid_predict (double decision_value, double A, double B) |
static void | multiclass_probability (int k, double **r, double *p) |
static void | svm_binary_svc_probability (const svm_problem *prob, const svm_parameter *param, double Cp, double Cn, double &probA, double &probB) |
static double | svm_svr_probability (const svm_problem *prob, const svm_parameter *param) |
static void | svm_group_classes (const svm_problem *prob, int *nr_class_ret, int **label_ret, int **start_ret, int **count_ret, int *perm) |
static void | remove_zero_weight (svm_problem *newprob, const svm_problem *prob) |
svm_model * | svm_train (const svm_problem *prob, const svm_parameter *param) |
void | svm_cross_validation (const svm_problem *prob, const svm_parameter *param, int nr_fold, double *target) |
int | svm_get_svm_type (const svm_model *model) |
int | svm_get_nr_class (const svm_model *model) |
void | svm_get_labels (const svm_model *model, int *label) |
void | svm_get_sv_indices (const svm_model *model, int *indices) |
int | svm_get_nr_sv (const svm_model *model) |
double | svm_get_svr_probability (const svm_model *model) |
double | svm_predict_values (const svm_model *model, const svm_node *x, double *dec_values) |
double | svm_predict (const svm_model *model, const svm_node *x) |
double | svm_predict_probability (const svm_model *model, const svm_node *x, double *prob_estimates) |
int | svm_save_model (const char *model_file_name, const svm_model *model) |
static char * | readline (FILE *input) |
bool | read_model_header (FILE *fp, svm_model *model) |
svm_model * | svm_load_model (const char *model_file_name) |
void | svm_free_model_content (svm_model *model_ptr) |
void | svm_free_and_destroy_model (svm_model **model_ptr_ptr) |
void | svm_destroy_param (svm_parameter *param) |
const char * | svm_check_parameter (const svm_problem *prob, const svm_parameter *param) |
int | svm_check_probability_model (const svm_model *model) |
void | svm_set_print_string_function (void(*print_func)(const char *)) |
Variables | |
int | libsvm_version |
static void(* | svm_print_string )(const char *) |
static const char * | svm_type_table [] |
static const char * | kernel_type_table [] |
static char * | line |
static int | max_line_len |
#define FSCANF | ( | _stream, | |
_format, | |||
_var | |||
) |
Definition at line 2912 of file svm.cpp.
Referenced by read_model_header().
#define Malloc | ( | type, | |
n | |||
) |
Definition at line 91 of file svm.cpp.
Referenced by multiclass_probability(), read_model_header(), remove_zero_weight(), sigmoid_train(), svm_binary_svc_probability(), svm_check_parameter(), svm_cross_validation(), svm_group_classes(), svm_load_model(), svm_predict(), svm_predict_probability(), svm_predict_values(), svm_svr_probability(), svm_train(), and svm_train_one().
|
inlinestatic |
Definition at line 73 of file svm.cpp.
Referenced by mitk::ArbitraryTimeGeometry::AppendTimeStepClone(), mitk::IGTLDummyMessage::Clone(), mitk::ProportionalTimeGeometry::Expand(), and mitk::NavigationDataRecorder::GenerateData().
|
static |
Definition at line 100 of file svm.cpp.
Referenced by mitk::PropertyPersistence::AddInfo(), mitk::DICOMTagsOfInterestService::AddTagOfInterest(), QmitkAlgorithmListModel::data(), mitk::DICOMTagPath::FromStr(), mitk::MAPAlgorithmInfoSelection::GetSelectedAlgorithmInfo(), mitk::NDITrackingDevice::GetSupportedVolumes(), mitk::DICOMGenericTagCache::GetTagValue(), QmitkFileChooser::IsValidFile(), multiclass_probability(), QmitkDicomExternalDataWidget::OnDownloadButtonClicked(), QmitkRegistrationJob::OnMapAlgorithmEvent(), mitk::ItkImageIO::Read(), mitk::DICOMDCMTKTagScanner::Scan(), QmitkFileChooser::SetFile(), mitk::TbssImage::SetGroupInfo(), mitk::DICOMImageBlockDescriptor::SetTiltInformation(), sigmoid_train(), solve_nu_svc(), solve_nu_svr(), svm_svr_probability(), svm_train(), and svm_train_one().
|
inlinestatic |
Definition at line 70 of file svm.cpp.
Referenced by mitk::NavigationDataLandmarkTransformFilter::AccumulateStatistics(), QmitkOverlayController::AdjustOverlayPosition(), mitk::SliceNavigationController::AdjustSliceStepperRange(), itk::DiffusionIntravoxelIncoherentMotionReconstructionImageFilter< TInputPixelType, TOutputPixelType >::BeforeThreadedGenerateData(), mitk::ExtrudedContour::BuildGeometry(), mitk::ConnectomicsNetworkCreator::CalculateCenterOfMass(), mitk::ImageStatisticsCalculator::CalculateExtremaWorld(), mitk::ClippedSurfaceBoundsCalculator::CalculateIntersectionPoints(), mitk::CalculateGrayValueStatisticsTool::CalculateMinMax(), mitk::ConnectomicsStatisticsCalculator::CalculateShortestPathMetrics(), mitk::PlanarPolygon::CheckForLineIntersection(), CheckPlanesOutsideOfBoundingBox(), itk::OdfMaximaExtractionFilter< TOdfPixelType >::ClusterPeaks(), mitk::MultiComponentImageDataComparisonFilter::CompareMultiComponentImage(), mitk::DataStorage::ComputeBoundingGeometry3D(), mitk::AnisotropicIterativeClosestPointRegistration::ComputeCorrespondences(), mitk::ComputeGlobalMinimum(), mitk::ImageStatisticsHolder::ComputeImageStatistics(), mitk::ComputeIntensityProfileStatistics(), mitk::DataStorage::ComputeTimeBounds(), mitk::ImageLiveWireContourModelFilter::CreateDynamicCostMapByITK(), QmitkMapPropertyDelegate::createEditor(), QmitkPropertyDelegate::createEditor(), QmitkToFCompositeFilterWidget::CreateQtPartControl(), QmitkTbssRoiAnalysisWidget::CreateTracts(), mitk::PointSetVtkMapper2D::CreateVTKRenderObjects(), mitk::ClippedSurfaceBoundsCalculator::EnforceImageBounds(), mitk::LevelWindow::EnsureConsistency(), mitk::ImageStatisticsHolder::Expand(), mitk::RandomParcellationGenerator< TPixel, VImageDimension >::ExtendedRegionNotNeighbor(), itk::TractsToVectorImageFilter< PixelType >::FastClustering(), mitk::FeedbackContourTool::FeedbackContourTool(), mitk::FileWriterSelector::FileWriterSelector(), mitk::NavigationDataLandmarkTransformFilter::FindCorrespondentLandmarks(), mitk::ProportionalTimeGeometryToXML::FromXML(), mitk::GeneralizedLinearModel::GeneralizedLinearModel(), itk::MultiHistogramFilter< TInputImageType, TOuputImageType >::GenerateData(), mitk::BoundingObjectToSegmentationFilter::GenerateData(), itk::DwiGradientLengthCorrectionFilter::GenerateData(), itk::TractDensityImageFilter< OutputImageType >::GenerateData(), itk::EvaluateTractogramDirectionsFilter< PixelType >::GenerateData(), itk::OdfMaximaExtractionFilter< TOdfPixelType >::GenerateData(), itk::TractsToDWIImageFilter< PixelType >::GenerateData(), itk::EvaluateDirectionImagesFilter< PixelType >::GenerateData(), mitk::ExtractSliceFilter::GenerateData(), mitk::BoundingObjectCutter::GenerateOutputInformation(), mitk::BoundingShapeCropper::GenerateOutputInformation(), get_statistics_boost(), mitk::vtkSimulationPolyDataMapper2D::GetBounds(), mitk::vtkSimulationPolyDataMapper3D::GetBounds(), berry::Geometry::GetClosestSide(), mitk::DICOMFileReaderSelector::GetFirstReaderWithMinimumNumberOfOutputImages(), mitk::LabeledImageToSurfaceFilter::GetLabelForNthOutput(), mitk::Gizmo::GetLongestRadius(), mitk::SimpleImageHistogram::GetMax(), mitk::PlanarBezierCurve::GetMaximumNumberOfControlPoints(), mitk::ProportionalTimeGeometry::GetMaximumTimePoint(), QmitkOverlayController::GetMinimumSizeForWidget(), mitk::ProportionalTimeGeometry::GetMinimumTimePoint(), mitk::OtsuTool3D::GetNumberOfBins(), mitk::TubeGraphPicker::GetPickedTube(), mitk::ImageStatisticsHolder::GetScalarValue2ndMinNoRecompute(), mitk::ImageStatisticsHolder::GetScalarValueMinNoRecompute(), mitk::ImageStatisticsHolder::ImageStatisticsHolder(), mitk::ProportionalTimeGeometry::Initialize(), mitk::ClippedSurfaceBoundsCalculator::InitializeOutput(), mitk::PartialVolumeAnalysisHistogramCalculator::InternalCalculateMaskFromPlanarFigure(), mitk::MRNormTwoRegionsBasedFilter::InternalComputeMask(), mitk::MaskImageFilter::InternalComputeMask(), mitk::CalculateGrayValueStatisticsTool::ITKHistogramming(), mitk::CalculateSegmentationVolume::ItkImageProcessing(), itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelStatistics::LabelStatistics(), mitk::FiberfoxParameters< ScalarType >::LoadParameters(), main(), mitk::ToFOpenCVImageGrabber::MapScalars(), mitkMultiComponentImageDataComparisonFilterTest(), multiclass_probability(), itk::TractsToDWIImageFilter< PixelType >::NormalizeInsideMask(), QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), QmlMitkImageNavigator::OnRefetch(), itk::Functor::NeighborhoodFirstOrderStatistics< TNeighborhoodType, TPixelOutputType >::operator()(), itk::Functor::NeighborhoodCooccurenceMatrix< TNeighborhoodType, TPixelOutputType >::operator()(), mitk::MeshMapper2D::Paint(), mitk::ParticleGrid::ParticleGrid(), mitk::PartialVolumeAnalysisClusteringCalculator::PerformClustering(), itk::TractsToDWIImageFilter< PixelType >::PrepareLogFile(), mitk::CollectionStatistic::Print(), QmitkAnyDoubleWidget::QmitkAnyDoubleWidget(), QmitkAnyFloatWidget::QmitkAnyFloatWidget(), QmitkAnyIntWidget::QmitkAnyIntWidget(), QmitkAnyShortWidget::QmitkAnyShortWidget(), QmitkAnyUIntWidget::QmitkAnyUIntWidget(), QmitkAnyUShortWidget::QmitkAnyUShortWidget(), QmitkLineEditLevelWindowWidget::QmitkLineEditLevelWindowWidget(), mitk::PyramidImageRegistrationMethod::RegisterTwoImagesV4(), mitk::CompareImageDataFilter::ResetCompareResultsToInitial(), mitk::ImageStatisticsHolder::ResetImageStatistics(), mitk::RawShModel< ScalarType >::SampleKernels(), mitk::SliceNavigationController::SelectSliceByPoint(), mitk::RawShModel< ScalarType >::SetAdcRange(), mitk::LevelWindow::SetAuto(), mitk::PlanarEllipse::SetControlPoint(), itk::ShortestPathCostFunctionLiveWire< TInputImageType >::SetCostMapMaximum(), mitk::RawShModel< ScalarType >::SetFaRange(), QmitkAdaptiveRegionGrowingToolGUI::SetInputImageNode(), QmitkSliderNavigatorWidget::SetLabelValues(), QmitkTransferFunctionCanvas::SetMax(), QmlMitkTransferFunctionCanvas::SetMax(), mitk::RenderingManager::SetMaximumLOD(), mitk::RawShModel< ScalarType >::SetMaxNumKernels(), mitk::PlanarBezierCurve::SetNumberOfSegments(), mitk::PlanarDoubleEllipse::SetNumberOfSegments(), QmitkODFDetailsWidget::SetParameters(), mitk::Stepper::SetRange(), mitk::LevelWindow::SetRangeMinMax(), mitk::ToFCompositeFilter::SetThresholdFilterParameter(), mitk::ManufacturerLogo::SetupCamera(), mitk::ManufacturerLogo::SetupPosition(), svm_predict_probability(), itk::FiniteDiffOdfMaximaExtractionFilter< PixelType, ShOrder, NrOdfDirections >::ThreadedGenerateData(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateFunction(), mitk::ProportionalTimeGeometry::TimeStepToTimePoint(), mitk::ProportionalTimeGeometryToXML::ToXML(), mitk::ClippedSurfaceBoundsCalculator::Update(), mitk::CvMatCompare::Update(), mitk::AnisotropicIterativeClosestPointRegistration::Update(), mitk::ConnectomicsNetwork::UpdateBounds(), mitk::Simulation::UpdateOutputInformation(), QmitkTransferFunctionCanvas::ValidateCoord(), QmlMitkTransferFunctionCanvas::ValidateCoord(), mitk::WeightedPointTransform::WeightedPointRegister(), and us::LDAPExprConstants::WILDCARD().
|
inlinestatic |
Definition at line 67 of file svm.cpp.
Referenced by mitk::NavigationDataLandmarkTransformFilter::AccumulateStatistics(), mitk::SliceNavigationController::AdjustSliceStepperRange(), ApplyMaterial(), Assert_ItkImageImportSucceded_ReturnsTrue(), mitk::ExtrudedContour::BuildGeometry(), mitk::ConnectomicsNetworkCreator::CalculateCenterOfMass(), mitk::ImageStatisticsCalculator::CalculateExtremaWorld(), mitk::ClippedSurfaceBoundsCalculator::CalculateIntersectionPoints(), mitk::CalculateGrayValueStatisticsTool::CalculateMinMax(), mitk::PlanarPolygon::CheckForLineIntersection(), CheckPlanesOutsideOfBoundingBox(), itk::OdfMaximaExtractionFilter< TOdfPixelType >::ClusterPeaks(), mitk::MultiComponentImageDataComparisonFilter::CompareMultiComponentImage(), mitk::ComputeCenterOfMaximumArea(), mitk::ComputeGlobalMaximum(), mitk::ComputeIntensityProfileStatistics(), QmitkMapPropertyDelegate::createEditor(), QmitkPropertyDelegate::createEditor(), CreateJSONEscapes(), QmitkToFCompositeFilterWidget::CreateQtPartControl(), QmitkDataStorageTreeModel::dropMimeData(), mitk::ClippedSurfaceBoundsCalculator::EnforceImageBounds(), mitk::LevelWindow::EnsureConsistency(), mitk::Equal(), mitk::RandomParcellationGenerator< TPixel, VImageDimension >::ExtendedRegionNotNeighbor(), mitk::FiberBundle::ExtractFiberIdSubset(), itk::MultiHistogramFilter< TInputImageType, TOuputImageType >::GenerateData(), mitk::BoundingObjectToSegmentationFilter::GenerateData(), itk::TractsToDWIImageFilter< PixelType >::GenerateData(), mitk::BoundingObjectCutter::GenerateOutputInformation(), mitk::BoundingShapeCropper::GenerateOutputInformation(), get_statistics_boost(), mitk::vtkSimulationPolyDataMapper2D::GetBounds(), mitk::vtkSimulationPolyDataMapper3D::GetBounds(), mitk::IgnorePixelMaskGenerator::GetMask(), mitk::SimpleImageHistogram::GetMin(), mitk::OtsuTool3D::GetNumberOfBins(), itk::MLBSTrackingFilter< ShOrder, NumImageFeatures >::GetRandDouble(), mitk::IndexROI::init(), mitk::ClippedSurfaceBoundsCalculator::InitializeOutput(), mitk::PartialVolumeAnalysisHistogramCalculator::InternalCalculateMaskFromPlanarFigure(), mitk::MRNormTwoRegionsBasedFilter::InternalComputeMask(), mitk::MaskImageFilter::InternalComputeMask(), mitk::CalculateGrayValueStatisticsTool::ITKHistogramming(), mitk::CalculateSegmentationVolume::ItkImageProcessing(), mitk::ToFOpenCVImageGrabber::MapScalars(), us::ModuleVersion::ModuleVersion(), itk::TractsToDWIImageFilter< PixelType >::NormalizeInsideMask(), QmitkIGTPlayerWidget::OnPlaying(), QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), QmlMitkImageNavigator::OnRefetch(), QmitkNavigationDataPlayerControlWidget::OnUpdate(), itk::Functor::NeighborhoodFirstOrderStatistics< TNeighborhoodType, TPixelOutputType >::operator()(), itk::Functor::NeighborhoodCooccurenceMatrix< TNeighborhoodType, TPixelOutputType >::operator()(), mitk::MeshMapper2D::Paint(), mitk::VectorImageMapper2D::Paint(), mitk::PlanarFigureMapper2D::PaintPolyLine(), mitk::PartialVolumeAnalysisClusteringCalculator::PerformClustering(), QmitkAnyDoubleWidget::QmitkAnyDoubleWidget(), QmitkAnyFloatWidget::QmitkAnyFloatWidget(), QmitkAnyIntWidget::QmitkAnyIntWidget(), QmitkAnyShortWidget::QmitkAnyShortWidget(), QmitkAnyUIntWidget::QmitkAnyUIntWidget(), QmitkAnyUShortWidget::QmitkAnyUShortWidget(), mitk::PyramidImageRegistrationMethod::RegisterTwoImagesV4(), mitk::FiberBundle::RemoveShortFibers(), mitk::TumorInvasionClassification::SelectTrainingSamples(), mitk::RawShModel< ScalarType >::SetAdcRange(), mitk::LevelWindow::SetAuto(), mitk::LevelWindowManager::SetAutoTopMostImage(), mitk::RawShModel< ScalarType >::SetFaRange(), QmitkAdaptiveRegionGrowingToolGUI::SetInputImageNode(), QmitkSliderNavigatorWidget::SetLabelValues(), QmitkTransferFunctionCanvas::SetMin(), QmlMitkTransferFunctionCanvas::SetMin(), QmitkODFDetailsWidget::SetParameters(), mitk::Stepper::SetRange(), mitk::LevelWindow::SetRangeMinMax(), mitk::ToFCompositeFilter::SetThresholdFilterParameter(), solve_nu_svc(), solve_nu_svr(), solve_one_class(), svm_check_parameter(), svm_predict_probability(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateFunction(), mitk::ProportionalTimeGeometry::TimeStepToTimePoint(), mitk::LevelWindowManager::Update(), mitk::ClippedSurfaceBoundsCalculator::Update(), mitk::ConnectomicsNetwork::UpdateBounds(), mitk::Simulation::UpdateOutputInformation(), QmitkTransferFunctionCanvas::ValidateCoord(), and QmlMitkTransferFunctionCanvas::ValidateCoord().
|
static |
|
static |
Definition at line 93 of file svm.cpp.
Referenced by svm_set_print_string_function().
bool read_model_header | ( | FILE * | fp, |
svm_model * | model | ||
) |
Definition at line 2913 of file svm.cpp.
References svm_parameter::coef0, svm_parameter::degree, FSCANF, svm_parameter::gamma, svm_parameter::kernel_type, svm_model::l, svm_model::label, Malloc, svm_model::nr_class, svm_model::nSV, svm_model::param, svm_model::probA, svm_model::probB, svm_model::rho, and svm_parameter::svm_type.
Referenced by svm_load_model().
|
static |
|
static |
Definition at line 2197 of file svm.cpp.
References svm_problem::l, svm_model::l, Malloc, svm_problem::W, svm_problem::x, and svm_problem::y.
Referenced by svm_train().
|
static |
Definition at line 1919 of file svm.cpp.
Referenced by svm_predict_probability().
|
static |
|
static |
Definition at line 1493 of file svm.cpp.
References svm_parameter::eps, svm_problem::l, svm_parameter::shrinking, svm_problem::W, and svm_problem::y.
Referenced by svm_train_one().
|
static |
Definition at line 1646 of file svm.cpp.
References svm_parameter::C, svm_parameter::eps, svm_problem::l, svm_parameter::p, svm_parameter::shrinking, svm_problem::W, and svm_problem::y.
Referenced by svm_train_one().
|
static |
Definition at line 1540 of file svm.cpp.
References svm_parameter::eps, info(), svm_problem::l, min(), svm_parameter::nu, svm_parameter::shrinking, svm_problem::W, and svm_problem::y.
Referenced by svm_train_one().
|
static |
Definition at line 1686 of file svm.cpp.
References svm_parameter::C, svm_parameter::eps, info(), svm_problem::l, min(), svm_parameter::nu, svm_parameter::shrinking, svm_problem::W, and svm_problem::y.
Referenced by svm_train_one().
|
static |
Definition at line 1603 of file svm.cpp.
References svm_parameter::eps, svm_problem::l, min(), svm_parameter::nu, svm_parameter::shrinking, and svm_problem::W.
Referenced by svm_train_one().
|
static |
Definition at line 1994 of file svm.cpp.
References svm_parameter::C, svm_problem::l, svm_model::label, Malloc, svm_parameter::nr_weight, svm_parameter::probability, sigmoid_train(), svm_destroy_param(), svm_free_and_destroy_model(), svm_predict_values(), svm_train(), swap(), svm_problem::W, svm_parameter::weight, svm_parameter::weight_label, svm_problem::x, and svm_problem::y.
Referenced by svm_train().
const char* svm_check_parameter | ( | const svm_problem * | prob, |
const svm_parameter * | param | ||
) |
Definition at line 3172 of file svm.cpp.
References svm_parameter::C, C_SVC, svm_parameter::cache_size, svm_parameter::degree, svm_parameter::eps, EPSILON_SVR, svm_parameter::gamma, svm_parameter::kernel_type, svm_problem::l, svm_model::l, svm_model::label, LINEAR, Malloc, min(), svm_model::nr_class, svm_parameter::nu, NU_SVC, NU_SVR, ONE_CLASS, svm_parameter::p, POLY, PRECOMPUTED, svm_parameter::probability, RBF, svm_parameter::shrinking, SIGMOID, svm_parameter::svm_type, svm_problem::W, and svm_problem::y.
int svm_check_probability_model | ( | const svm_model * | model | ) |
Definition at line 3293 of file svm.cpp.
References C_SVC, EPSILON_SVR, NU_SVC, NU_SVR, svm_model::param, svm_model::probA, svm_model::probB, and svm_parameter::svm_type.
void svm_cross_validation | ( | const svm_problem * | prob, |
const svm_parameter * | param, | ||
int | nr_fold, | ||
double * | target | ||
) |
Definition at line 2488 of file svm.cpp.
References C_SVC, svm_problem::l, svm_model::l, svm_model::label, Malloc, svm_model::nr_class, NU_SVC, svm_parameter::probability, svm_free_and_destroy_model(), svm_get_nr_class(), svm_group_classes(), svm_predict(), svm_predict_probability(), svm_train(), svm_parameter::svm_type, swap(), svm_problem::W, svm_problem::x, and svm_problem::y.
Referenced by svm_svr_probability().
void svm_destroy_param | ( | svm_parameter * | param | ) |
Definition at line 3166 of file svm.cpp.
References svm_parameter::weight, and svm_parameter::weight_label.
Referenced by svm_binary_svc_probability(), mitk::LibSVMClassifier::Train(), and mitk::LibSVMClassifier::~LibSVMClassifier().
void svm_free_and_destroy_model | ( | svm_model ** | model_ptr_ptr | ) |
Definition at line 3156 of file svm.cpp.
References svm_free_model_content().
Referenced by svm_binary_svc_probability(), svm_cross_validation(), and mitk::LibSVMClassifier::~LibSVMClassifier().
void svm_free_model_content | ( | svm_model * | model_ptr | ) |
Definition at line 3121 of file svm.cpp.
References svm_model::free_sv, svm_model::l, svm_model::label, svm_model::nr_class, svm_model::nSV, svm_model::probA, svm_model::probB, svm_model::rho, svm_model::SV, svm_model::sv_coef, and svm_model::sv_indices.
Referenced by svm_free_and_destroy_model().
void svm_get_labels | ( | const svm_model * | model, |
int * | label | ||
) |
Definition at line 2623 of file svm.cpp.
References svm_model::label, and svm_model::nr_class.
int svm_get_nr_class | ( | const svm_model * | model | ) |
Definition at line 2618 of file svm.cpp.
References svm_model::nr_class.
Referenced by svm_cross_validation().
int svm_get_nr_sv | ( | const svm_model * | model | ) |
Definition at line 2637 of file svm.cpp.
References svm_model::l.
void svm_get_sv_indices | ( | const svm_model * | model, |
int * | indices | ||
) |
Definition at line 2630 of file svm.cpp.
References svm_model::l, and svm_model::sv_indices.
int svm_get_svm_type | ( | const svm_model * | model | ) |
Definition at line 2613 of file svm.cpp.
References svm_model::param, and svm_parameter::svm_type.
double svm_get_svr_probability | ( | const svm_model * | model | ) |
Definition at line 2642 of file svm.cpp.
References EPSILON_SVR, NU_SVR, svm_model::param, svm_model::probA, and svm_parameter::svm_type.
|
static |
Definition at line 2119 of file svm.cpp.
References svm_problem::l, svm_model::l, svm_model::label, Malloc, svm_model::nr_class, swap(), and svm_problem::y.
Referenced by svm_cross_validation(), and svm_train().
svm_model* svm_load_model | ( | const char * | model_file_name | ) |
Definition at line 3022 of file svm.cpp.
References svm_model::free_sv, svm_node::index, svm_model::l, svm_model::label, Malloc, svm_model::nr_class, svm_model::nSV, svm_model::probA, svm_model::probB, read_model_header(), readline(), svm_model::rho, svm_model::SV, svm_model::sv_coef, svm_model::sv_indices, and svm_node::value.
Definition at line 2730 of file svm.cpp.
References EPSILON_SVR, Malloc, svm_model::nr_class, NU_SVR, ONE_CLASS, svm_model::param, svm_predict_values(), and svm_parameter::svm_type.
Referenced by svm_cross_validation(), and svm_predict_probability().
double svm_predict_probability | ( | const svm_model * | model, |
const svm_node * | x, | ||
double * | prob_estimates | ||
) |
Definition at line 2745 of file svm.cpp.
References C_SVC, svm_model::label, Malloc, max(), min(), multiclass_probability(), svm_model::nr_class, NU_SVC, svm_model::param, svm_model::probA, svm_model::probB, sigmoid_predict(), svm_predict(), svm_predict_values(), and svm_parameter::svm_type.
Referenced by svm_cross_validation().
Definition at line 2654 of file svm.cpp.
References EPSILON_SVR, svm_model::l, svm_model::label, Malloc, svm_model::nr_class, svm_model::nSV, NU_SVR, ONE_CLASS, svm_model::param, svm_model::rho, svm_model::SV, svm_model::sv_coef, and svm_parameter::svm_type.
Referenced by svm_binary_svc_probability(), svm_predict(), and svm_predict_probability().
int svm_save_model | ( | const char * | model_file_name, |
const svm_model * | model | ||
) |
Definition at line 2794 of file svm.cpp.
References svm_parameter::coef0, svm_parameter::degree, svm_parameter::gamma, svm_node::index, svm_parameter::kernel_type, svm_model::l, svm_model::label, svm_model::nr_class, svm_model::nSV, svm_model::param, POLY, PRECOMPUTED, svm_model::probA, svm_model::probB, RBF, svm_model::rho, SIGMOID, svm_model::SV, svm_model::sv_coef, svm_parameter::svm_type, and svm_node::value.
void svm_set_print_string_function | ( | void(*)(const char *) | print_func | ) |
Definition at line 3301 of file svm.cpp.
References print_string_stdout(), and svm_print_string.
|
static |
Definition at line 2085 of file svm.cpp.
References info(), svm_problem::l, Malloc, svm_model::param, svm_parameter::probability, svm_cross_validation(), and svm_problem::y.
Referenced by svm_train().
svm_model* svm_train | ( | const svm_problem * | prob, |
const svm_parameter * | param | ||
) |
Definition at line 2223 of file svm.cpp.
References svm_parameter::C, EPSILON_SVR, svm_model::free_sv, info(), svm_problem::l, svm_model::l, svm_model::label, Malloc, svm_model::nr_class, svm_model::nSV, NU_SVR, ONE_CLASS, svm_model::param, svm_model::probA, svm_parameter::probability, svm_model::probB, remove_zero_weight(), svm_model::rho, svm_model::SV, svm_model::sv_coef, svm_model::sv_indices, svm_binary_svc_probability(), svm_group_classes(), svm_svr_probability(), svm_train_one(), svm_parameter::svm_type, svm_problem::W, svm_parameter::weight, svm_parameter::weight_label, svm_problem::x, and svm_problem::y.
Referenced by svm_binary_svc_probability(), and svm_cross_validation().
|
static |
Definition at line 1741 of file svm.cpp.
References C_SVC, EPSILON_SVR, info(), svm_problem::l, Malloc, NU_SVC, NU_SVR, ONE_CLASS, solve_c_svc(), solve_epsilon_svr(), solve_nu_svc(), solve_nu_svr(), solve_one_class(), svm_parameter::svm_type, and svm_problem::y.
Referenced by svm_train().
|
inlinestatic |
Definition at line 72 of file svm.cpp.
Referenced by mitk::LevelWindow::EnsureConsistency(), mitk::ThresholdSplit< TColumnDecisionFunctor, TFeatureCalculator, TTag >::findBestSplit(), itk::Functor::NeighborhoodCooccurenceMatrix< TNeighborhoodType, TPixelOutputType >::operator()(), mitk::PropertyFilter::operator=(), mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::operator=(), mitk::LevelWindow::SetDefaultBoundaries(), mitk::LevelWindow::SetWindowBounds(), svm_binary_svc_probability(), svm_cross_validation(), svm_group_classes(), mitk::Surface::Swap(), us::SharedDataPointer< ModuleEventData >::Swap(), us::ExplicitlySharedDataPointer< SharedLibraryPrivate >::Swap(), us::Any::Swap(), and Json::Value::swap().
|
static |
Definition at line 2884 of file svm.cpp.
Referenced by mitk::ClippedSurfaceBoundsCalculator::CalculateIntersectionPoints(), mitk::DisplayInteractor::CheckSwivelPossible(), QmitkScalarBar::CleanUpLines(), vtkMitkVolumeTextureMapper3D::ComputePolygons(), QmitkBoundingObjectWidget::CreateBoundingObject(), mitk::LabelSetImageVtkMapper2D::CreateOutlinePolyData(), mitk::ImageVtkMapper2D::CreateOutlinePolyData(), mitk::PointSetVtkMapper2D::CreateVTKRenderObjects(), file_replace(), mitk::Transform::FromCSVFile(), mitk::ContourModelSetMapper3D::GenerateDataForRenderer(), QmlMitkStdMultiItem::getCrossPosition(), QmitkStdMultiWidget::GetCrossPosition(), mitk::ComputeContourSetNormalsFilter::GetNormalsAsSurface(), mitk::DiffusionImageNiftiReaderService::InternalRead(), LoadDumps(), mitk::Line< double, 2 >::operator!=(), mitk::MeshMapper2D::Paint(), QmitkScalarBar::paintEvent(), mitk::ExampleDataStructureReaderService::Read(), QmitkPythonTextEditor::ReadFile(), readline(), ConfigFileReader::ReadStream(), mitk::Mesh::SearchLine(), and itk::StreamlineTrackingFilter< TTensorPixelType, TPDPixelType >::ThreadedGenerateData().
|
static |
Definition at line 98 of file svm.cpp.
Referenced by svm_set_print_string_function().