Support Forums
Median Calculation on DT82

It's not possible to log the median on datataker? If not, how can i access the sample data that statistic sub-schedule uses to make the median calculation by hand?

It's not possible to log the median on datataker? If not, how can i access the sample data that statistic sub-schedule uses to make the median calculation by hand?

Hi Saulo,

There is no median function in dataTaker, you will need to log every reading, unload them and listed in order to find the median.

If the number of data is small, I might help you to get the median by formula in the program.
How many data point that you need to consider per cycle?

Histogram function might help you as well if all of the data points are integer and you know the lower and upper limit

Best regards,
Rudy Gunawan

Hi Saulo, There is no median function in dataTaker, you will need to log every reading, unload them and listed in order to find the median. If the number of data is small, I might help you to get the median by formula in the program. How many data point that you need to consider per cycle? Histogram function might help you as well if all of the data points are integer and you know the lower and upper limit Best regards, Rudy Gunawan

Hi Rudy!

I need to work with 60 samples to statistical calculation. (10s sample, 10minutes unloading)

my approach can be something like:

10s subschedule statistic
10s schedule to build the samples array
10min schedule to calculate median and unload with standard deviation, average, maximum and minimum

but i cant find any info about variables array..there's no array variable on dt language?

Hi Rudy! I need to work with 60 samples to statistical calculation. (10s sample, 10minutes unloading) my approach can be something like: 10s subschedule statistic 10s schedule to build the samples array 10min schedule to calculate median and unload with standard deviation, average, maximum and minimum but i cant find any info about variables array..there's no array variable on dt language?

Hi Saulo,

dataTaker has no variable array feature.
Histogram might help you determining the median (specially if you know the boundary of your data).

BEGIN"HISTO"
1..13CV=0
RA1S
1TT(H25.0:35.0:1..13CV)

RBX
11CV("Under" ) 1..10CV 12CV("Over" ) 13CV("Total" )
END

The above program will lock the range between 25 to 35 degC.
Assuming you have this data 23, 24, 28,30, 30, 32, 35, 36

This will be produce by the logger:
Under 2.0 'represent the number of data less than 25
1CV 0.0 'represent the number of data between 25...25.999
2CV 0.0 'represent the number of data between 26...26.999
3CV 0.0 'represent the number of data between 27...27.999
4CV 1.0 'represent the number of data between 28...28.999
5CV 0.0 'represent the number of data between 29...29.999
6CV 2.0 'represent the number of data between 30...30.999
7CV 0.0 'represent the number of data between 31...31.999
8CV 1.0 'represent the number of data between 32...32.999
9CV 0.0 'represent the number of data between 33...33.999
10CV 0.0 'represent the number of data between 34...34.999
Over 2.0 'represent the number of data at 35 or above
Total 8.0 'represent total data

Then you can manually determine the median or you may use another conditional statements to do it for you automatically.

Best regards,
Rudy Gunawan

Hi Saulo, dataTaker has no variable array feature. Histogram might help you determining the median (specially if you know the boundary of your data). BEGIN"HISTO" 1..13CV=0 RA1S 1TT(H25.0:35.0:1..13CV) RBX 11CV("Under" ) 1..10CV 12CV("Over" ) 13CV("Total" ) END The above program will lock the range between 25 to 35 degC. Assuming you have this data 23, 24, 28,30, 30, 32, 35, 36 This will be produce by the logger: Under 2.0 'represent the number of data less than 25 1CV 0.0 'represent the number of data between 25...25.999 2CV 0.0 'represent the number of data between 26...26.999 3CV 0.0 'represent the number of data between 27...27.999 4CV 1.0 'represent the number of data between 28...28.999 5CV 0.0 'represent the number of data between 29...29.999 6CV 2.0 'represent the number of data between 30...30.999 7CV 0.0 'represent the number of data between 31...31.999 8CV 1.0 'represent the number of data between 32...32.999 9CV 0.0 'represent the number of data between 33...33.999 10CV 0.0 'represent the number of data between 34...34.999 Over 2.0 'represent the number of data at 35 or above Total 8.0 'represent total data Then you can manually determine the median or you may use another conditional statements to do it for you automatically. Best regards, Rudy Gunawan
16
3
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft