Customer_Std.cs 626 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace wispro.sp.share
  7. {
  8. public class CustomerAvg_Std
  9. {
  10. public string Name { get; set; }
  11. public double Sum { get; set; }
  12. public double SquareSum { get; set; }
  13. public int count { get; set; }
  14. public double Average
  15. {
  16. get { return Sum / count; }
  17. }
  18. public double Std_Deviation
  19. {
  20. get
  21. {
  22. return Math.Sqrt(SquareSum/count - Average * Average);
  23. }
  24. }
  25. }
  26. }