Commit 2b156939 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

runpctl: replace nth_element() by percentile()

parent 6585abcb
......@@ -25,7 +25,7 @@
#include "cdo.h"
#include "cdo_int.h"
#include "pstream.h"
#include "nth_element.h"
#include "percentiles.h"
void *Runpctl(void *argument)
......@@ -135,7 +135,7 @@ void *Runpctl(void *argument)
if ( j > 0 )
{
vars1[0][varID][levelID].ptr[i] = nth_element(array, j, (int)ceil(j*(pn/100.0))-1);
vars1[0][varID][levelID].ptr[i] = percentile(array, j, pn);
}
else
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment