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
687 B
57 lines
687 B
/*++
|
|
|
|
Copyright (c) 1998 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
confest.h
|
|
|
|
Abstract:
|
|
|
|
SIS Groveler confidence estimator include file
|
|
|
|
Authors:
|
|
|
|
John Douceur, 1998
|
|
|
|
Environment:
|
|
|
|
User Mode
|
|
|
|
|
|
Revision History:
|
|
|
|
|
|
--*/
|
|
|
|
#ifndef _INC_CONFEST
|
|
|
|
#define _INC_CONFEST
|
|
|
|
class ConfidenceEstimator
|
|
{
|
|
public:
|
|
|
|
ConfidenceEstimator(
|
|
int num_groups,
|
|
double initial_value = 0.0);
|
|
|
|
~ConfidenceEstimator();
|
|
|
|
void reset(
|
|
double reset_value = 0.0);
|
|
|
|
void update(
|
|
int group_index,
|
|
double value);
|
|
|
|
double confidence() const;
|
|
|
|
private:
|
|
|
|
int num_groups;
|
|
double confidence_value;
|
|
double *group_values;
|
|
};
|
|
|
|
#endif /* _INC_CONFEST */
|