#include <AnomalyDetectionBDT.h>
|
| | Bin (const nlohmann::json &obj, int nVars) |
| bool | isInside (const std::vector< int64_t > &inputEvent) const |
Definition at line 17 of file AnomalyDetectionBDT.h.
◆ Bin()
| TCS::Bin::Bin |
( |
const nlohmann::json & | obj, |
|
|
int | nVars ) |
Definition at line 339 of file AnomalyDetectionBDT.cxx.
341 for (
auto &[name, val] : obj[
"ranges"][
"min"].
items()) {
342
344 }
345 for (
auto &[name, val] : obj[
"ranges"][
"max"].
items()) {
347 }
348}
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 351 of file AnomalyDetectionBDT.cxx.
351 {
352 for (
size_t i = 0;
i < inputEvent.size(); ++
i) {
353 if (inputEvent[i] <=
minVals[i]) {
354 return false;
355 }
356 else if (inputEvent[i] >
maxVals[i]) {
357 return false;
358 }
359 }
360 return true;
361}
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Bin & | bin ) |
|
friend |
Definition at line 48 of file AnomalyDetectionBDT.cxx.
49 {
50 os <<
"Bin(score=" <<
bin.score <<
", nVar=" <<
bin.nVar
54 }
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: