Is There Any Function to Calculate Trimmean in DIAdem?

Updated Dec 14, 2020

Reported In

Software

  • DIAdem

Issue Details

I want to calculate mean value of my array without extreme values by use of a function likes trimmean of Microsoft Excel. Is there any method on DIAdem?

Solution

You need to use DIAdem Script to calculate trimmean. The easiest way is using the following python script.
from scipy import stats
x = [-100, 2, 3, 4, 5, 6, 7, 8, 500, 1000]
y = stats.trim_mean(x, 0.1)
print(y)