Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
|
This class computes local and global minimums of the sum of p exponent distance function. More...
#include <Frechet_mean_S1.hpp>
Modifiers | |
T_Frechet_mean_S1 (Angular_iterator Angles_begin, Angular_iterator Angles_end, Weights_iterator Weights_begin, Weights_iterator Weights_end, int p) | |
This algorithm goes through the following steps. More... | |
Accessors | |
FT | Get_p_mean () |
Returns root corresponding to global minimum of sum of p exponent distance function. More... | |
FT | Get_global_minimum () |
Returns global minimum of sum of p exponent distance function. More... | |
const std::vector< FT > & | Get_roots () |
Returns all roots of derivative of sum of p exponent distance function. More... | |
const std::vector< FT > & | Get_local_minimas () |
Returns all minimums of sum of p exponent distance function. More... | |
This class computes local and global minimums of the sum of p exponent distance function.
This class computes local and global minimums of the sum of p exponent distance function.
kernel | specifiying predicates and number types (see SBL::GT::Lazy_interval_kernel_for_frechet_mean or SBL::GT::Real_value_kernel_for_frechet_mean) |
T_Frechet_mean_S1 | ( | Angular_iterator | Angles_begin, |
Angular_iterator | Angles_end, | ||
Weights_iterator | Weights_begin, | ||
Weights_iterator | Weights_end, | ||
int | p | ||
) |
This algorithm goes through the following steps.
(1)Enriching the point vector with their oposite on the circle
an initializing the constants to compute the function and it's derivative.
(m_polynomial_Fpp and m_polynomial_Fp)
(2)Sorting newly enriched vector
(3)Maintaining the constants stored in m_polynomial_Fpp and m_polynomial_Fp
(4)Identifying the intervals where the derivative vanishes
(5)Computing the unique root of F p 0 on such intervals
Angles_begin | iterator on angular data set at the first angle |
Angles_end | iterator used to terminate the iteration |
Weights_begin | iterator on weights set at the first weight |
Weights_end | iterator used to terminate the iteration |
p | p exponent value |
|
inline |
Returns global minimum of sum of p exponent distance function.
|
inline |
Returns all minimums of sum of p exponent distance function.
|
inline |
Returns root corresponding to global minimum of sum of p exponent distance function.
|
inline |
Returns all roots of derivative of sum of p exponent distance function.