Geometric and weighted mean
|
12-23-2017, 10:33 AM
(This post was last modified: 12-23-2017 07:35 PM by salvomic.)
Post: #9
|
|||
|
|||
RE: Geometric and weighted mean
Could this code be good?
No error correction (for 0, negative numbers) in it. Code:
With the Carlos' lists list1={5.2, 8.2,7.4,5.7}, wlist={3,1,2,4}: mean(list1) = 6.625 median(list1) = 6.55 gmean(list1) = 6.51224817722 wmean(list1, wlist) = 6.14 hmean(list1) = 6.40171419012 Question for Bernard: are there those means in XCAS? EDIT:: thanks to Carlos29pz for info: I didn't remember that we can use the already present command mean(list1, list2) to get weighted mean, so please, use my program only for geometric and harmonic means, since those command won't be built-in the Prime. ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)