#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.
References counts1_, counts2_, counts3_, DecrementCounts(), IncrementCounts(), TVec< TVal, TSizeTy >::Len(), size_, and TExcept::Throw().
Referenced by TempMotifCounter::Count3TEdge2Node(), TempMotifCounter::Count3TEdge3NodeStarsNaive(), and TempMotifCounter::Count3TEdgeTriadsNaive().
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: