last ...
This commit is contained in:
@@ -412,6 +412,14 @@ double NormalizeDouble(
|
||||
//
|
||||
return value;
|
||||
}
|
||||
double NormalizeXDouble(
|
||||
double value,
|
||||
double min = 0,
|
||||
double max = DBL_MAX //
|
||||
)
|
||||
{
|
||||
return NormalizeDouble(value, min, max);
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalize Index based on Collection ...
|
||||
@@ -5287,6 +5295,53 @@ void AddsIfNotExists(
|
||||
// START Buffers ...
|
||||
//
|
||||
|
||||
bool IsSame(
|
||||
double current,
|
||||
double previous,
|
||||
double tolerance = 2 //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result =
|
||||
NotEmptyZero(current) &&
|
||||
NotEmptyZero(previous) &&
|
||||
current <= previous + tolerance &&
|
||||
current >= previous + tolerance;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
bool IsOver(
|
||||
double current,
|
||||
double previous,
|
||||
double tolerance = 2 //
|
||||
) {
|
||||
//
|
||||
bool result =
|
||||
NotEmptyZero(current) &&
|
||||
NotEmptyZero(previous) &&
|
||||
current >= previous + tolerance;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
bool IsUnder(
|
||||
double current,
|
||||
double previous,
|
||||
double tolerance = 2 //
|
||||
) {
|
||||
//
|
||||
bool result =
|
||||
NotEmptyZero(current) &&
|
||||
NotEmptyZero(previous) &&
|
||||
current <= previous - tolerance;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
template <typename T>
|
||||
bool IsSame(
|
||||
|
||||
Reference in New Issue
Block a user