#include <AnomalyDetectionBDT.h>
|
| | Bin (const nlohmann::json &obj, int nVars) |
| bool | isInside (const std::vector< int64_t > &inputEvent) const |
Definition at line 19 of file AnomalyDetectionBDT.h.
◆ Bin()
| TCS::Bin::Bin |
( |
const nlohmann::json & | obj, |
|
|
int | nVars ) |
Definition at line 340 of file AnomalyDetectionBDT.cxx.
342 for (
auto &[name, val] : obj[
"ranges"][
"min"].
items()) {
343
345 }
346 for (
auto &[name, val] : obj[
"ranges"][
"max"].
items()) {
348 }
349}
std::vector< int64_t > minVals
std::vector< int64_t > maxVals
◆ isInside()
| bool TCS::Bin::isInside |
( |
const std::vector< int64_t > & | inputEvent | ) |
const |
Definition at line 352 of file AnomalyDetectionBDT.cxx.
352 {
353 for (
size_t i = 0;
i < inputEvent.size(); ++
i) {
354 if (inputEvent[i] <=
minVals[i]) {
355 return false;
356 }
357 else if (inputEvent[i] >
maxVals[i]) {
358 return false;
359 }
360 }
361 return true;
362}
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Bin & | bin ) |
|
friend |
Definition at line 49 of file AnomalyDetectionBDT.cxx.
50 {
51 os <<
"Bin(score=" <<
bin.score <<
", nVar=" <<
bin.nVar
55 }
std::string vectorToString(const std::vector< T > &vec)
◆ maxVals
| std::vector<int64_t> TCS::Bin::maxVals |
|
private |
◆ minVals
| std::vector<int64_t> TCS::Bin::minVals |
|
private |
◆ nVar
◆ score
The documentation for this class was generated from the following files: