#include <temporalmotifs.h>
Definition at line 195 of file temporalmotifs.h.
ThreeTEdgeMotifCounter::ThreeTEdgeMotifCounter |
( |
int |
size | ) |
|
|
inline |
void ThreeTEdgeMotifCounter::Count |
( |
const TIntV & |
event_string, |
|
|
const TIntV & |
timestamps, |
|
|
double |
delta, |
|
|
Counter3D & |
counts |
|
) |
| |
Definition at line 567 of file temporalmotifs.cpp.
573 if (event_string.
Len() != timestamps.
Len()) {
574 TExcept::Throw(
"Number of events must equal number of timestamps");
577 for (
int end = 0; end < event_string.
Len(); end++) {
578 while (
double(timestamps[start]) + delta < double(timestamps[end])) {
TSizeTy Len() const
Returns the number of elements in the vector.
static void Throw(const TStr &MsgStr)
void IncrementCounts(int event)
void DecrementCounts(int event)
void ThreeTEdgeMotifCounter::DecrementCounts |
( |
int |
event | ) |
|
|
private |
void ThreeTEdgeMotifCounter::IncrementCounts |
( |
int |
event | ) |
|
|
private |
int ThreeTEdgeMotifCounter::size_ |
|
private |
The documentation for this class was generated from the following files: