ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  using ArrayMath in a thread
Posted by Scott on Mar-05-2013 01:17
Hi,
   I want to calculate percentile values like so (in c++):

DoubleArray  array(tmp,300);  //dummy values
ArrayMath perc(array);
double percentile=perc.percentile(5)

  Is the above safe to use in a working thread?

  How fast is the above , say on a list of 400?

Many Thanks
Scott

  Re: using ArrayMath in a thread
Posted by Peter Kwan on Mar-05-2013 22:58
Hi Scott,

Yes. The code you are using is 100% thread-safe.

We have not really done any benchmark on the ArrayMath, as it takes negligible CPU time and memory compared to plotting the same data. So it should not affect charting performance. I suspect for 400 points, the CPU time required is less than 1 milli-second (probably much less).

Regards
Peter Kwan