boonnano 1
C++ library giving usage access to the Boon Logic Nano technology
 
Loading...
Searching...
No Matches
clusterstats.h
Go to the documentation of this file.
1
2#ifndef CCLUSTER_STATS_H
3#define CCLUSTER_STATS_H
4
5#include <cstdio>
6#include <cstdint>
7#include <string>
8#include <vector>
9#include "nanoutil.h"
10
11class CNanoBackend;
12
14
18 public:
20
24 void Reset();
25
30
39 std::string GetStatusString(int CurrentIndent = 0, int AdditionalIndent = 4) const;
40
52 bool Serialize(const char* VarPath, const char* ThisVarName, struct archive* Archive, bool IsLoading);
53
59 void CopyTo(CClusterStats* Instance);
60
61 uint64_t m_Size;
63 uint32_t m_PCAX;
64 uint32_t m_PCAY;
65 uint32_t m_PCAZ;
66
67 uint32_t m_AnomalyIndex;
69 uint32_t m_DistanceIndex;
71 uint16_t m_NoveltyIndex;
72
73 std::vector<float> m_RootCauseVector;
74
78};
79
80#endif
std::string GetStatusString(int CurrentIndent=0, int AdditionalIndent=4) const
Generate print string for object values.
void ResetGhostClusters()
bool Serialize(const char *VarPath, const char *ThisVarName, struct archive *Archive, bool IsLoading)
void Reset()
Clear object values.
void CopyTo(CClusterStats *Instance)
Copy object to new object instance.
Cluster specific statistics.
Definition clusterstats.h:17
int m_GhostID
ID of the non-model anomalous cluster (is 0 if in the model)
Definition clusterstats.h:75
uint16_t m_NoveltyIndex
Nonzero value of how far the ghost cluster is outside of the model (0 if value is in the model)
Definition clusterstats.h:71
uint64_t m_Size
number of patterns that have been assigned to this cluster
Definition clusterstats.h:61
float m_Confidence
Value from 0 to 1 signifying how close the nearest cluster is in relation (is 0 if in the model)
Definition clusterstats.h:77
int m_NearestNeighborID
ID of the next closest cluster (is 0 if in the model)
Definition clusterstats.h:76
uint32_t m_PCAZ
PCA z coordinate.
Definition clusterstats.h:65
uint32_t m_ProbabilityIndex
Probability of the cluster occurring.
Definition clusterstats.h:70
uint32_t m_AnomalyIndex
Measure of how small (or rarely occurring) the cluster is.
Definition clusterstats.h:67
uint32_t m_PCAX
PCA x coordinate.
Definition clusterstats.h:63
uint32_t m_PCAY
PCA y coordinate.
Definition clusterstats.h:64
uint32_t m_FrequencyIndex
Measure of how the cluster size relates to the mean cluster size.
Definition clusterstats.h:68
std::vector< float > m_RootCauseVector
Vector of length of pattern * streaming window with probabilities that each feature contribute to clu...
Definition clusterstats.h:73
uint64_t m_CreatedAtInferenceNumber
the number of inferences when this cluster was created (used to create the growth curve)
Definition clusterstats.h:62
uint32_t m_DistanceIndex
Distance from the cluster to the model centroid.
Definition clusterstats.h:69