openalea.eartrack.eartrack.robust_mean¶
-
openalea.eartrack.eartrack.
robust_mean
(values, images, std_error=20)[source]¶ Look for most representative position in a small set of positions
This function perform a ‘vote’ between few values to extract the most representative(s) and the corresponding images :param values: (2 dimensional numpy float array) the vote will be perform on first value of each 2 values array :param images: (numpy array of string) id of image corresponding to each value :param std_error: (int) maximum standard error to reckon that 2 values are in the same group :return: means: (2 values numpy array) mean value of kept 2 values array
- ((-1, -1) if standard error remains more than std_error param)
- values: (2 dimensional numpy float array) kept values as most
- representatives
- images: (numpy array of string) id of image corresponding to each
kept value