Leaked source code of windows server 2003
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.
|
|
/*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
peakfind.h
Abstract:
SIS Groveler peak finder headers
Authors:
John Douceur, 1998
Environment:
User Mode
Revision History:
--*/
#ifndef _INC_PEAKFIND
#define _INC_PEAKFIND
class PeakFinder { public:
PeakFinder( double accuracy, double range);
~PeakFinder();
void reset();
void sample( double value, int weight);
bool found() const;
double mode() const;
double median() const;
private:
int num_bins; int *bins; double base; double multiplier; int floor_exp; double floor_value; int target_sample_size; int sample_size; int total_weight; };
#endif /* _INC_PEAKFIND */
|