Developer documentation
Version 3.0.3-105-gd3941f44
median.h File Reference
#include <algorithm>
#include <limits>
#include "types.h"
#include "app.h"

Go to the source code of this file.

Namespaces

namespace  MR
 
namespace  MR::Math
 

Functions

template<class Container >
Container::value_type MR::Math::median (Container &list)
 
template<class MatrixType = Eigen::Matrix<default_type, 3, Eigen::Dynamic>, class VectorType = Eigen::Matrix<default_type, 3, 1>>
bool MR::Math::median_weiszfeld (const MatrixType &X, VectorType &median, const size_t numIter=300, const default_type precision=0.00001)