Hi,
How do I calculate:
Average
Standard Deviation
Max
Min
from a serie ?
If I "zoom" on a part of the serie - how do I then calculate the average, standard deviation and max and min of only the part that has been zoomed ?
Calculating Average, Standard Deviation and max and min
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Calculating Average, Standard Deviation and max and min
Hi Friis,
For average and standard deviation you could use its Calculate method passing visible indexes as in the local minimum and maximum example.
You can use TeeChart built-in functions for that. You'll find examples of all of them at All Features\Welcome!\Functions\ in the new features demo, available at TeeChart's program group.How do I calculate:
Average
Standard Deviation
Max
Min
from a serie ?
For minimum and maximum you could do something as the local minimum and maximum example suggested here. You could use series' FirstVisibleIndex and LastVisibleIndex as first and last arguments. This is a TeeChart .NET thread but same should apply to VCL version.If I "zoom" on a part of the serie - how do I then calculate the average, standard deviation and max and min of only the part that has been zoomed ?
For average and standard deviation you could use its Calculate method passing visible indexes as in the local minimum and maximum example.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |