got pointer problem when trying with mean function

OK, let me rephrase.
What do you expect this IRdc = mean ((IRheartsignal, count),DEC); to do, and why doesn't it look anything like the example given in the playground?
What does "DEC" mean, in this context?

(If you want an arithmetic mean, just sum 'n' samples and divide by 'n'.
No library required)