Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
630 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. confest.h
  5. Abstract:
  6. SIS Groveler confidence estimator include file
  7. Authors:
  8. John Douceur, 1998
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef _INC_CONFEST
  14. #define _INC_CONFEST
  15. class ConfidenceEstimator
  16. {
  17. public:
  18. ConfidenceEstimator(
  19. int num_groups,
  20. double initial_value = 0.0);
  21. ~ConfidenceEstimator();
  22. void reset(
  23. double reset_value = 0.0);
  24. void update(
  25. int group_index,
  26. double value);
  27. double confidence() const;
  28. private:
  29. int num_groups;
  30. double confidence_value;
  31. double *group_values;
  32. };
  33. #endif /* _INC_CONFEST */