#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 565 of file temporalmotifs.cpp.
References counts1_, counts2_, counts3_, DecrementCounts(), IncrementCounts(), TVec< TVal, TSizeTy >::Len(), size_, and TExcept::Throw().
Referenced by TempMotifCounter::Count3TEdge2Node(), TempMotifCounter::Count3TEdge3NodeStarsNaive(), and TempMotifCounter::Count3TEdgeTriadsNaive().
571 if (event_string.
Len() != timestamps.
Len()) {
572 TExcept::Throw(
"Number of events must equal number of timestamps");
575 for (
int end = 0; end < event_string.
Len(); end++) {
576 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: