In file Cluster.hh:

class Cluster

Defines an event cluster condition

Inheritance:


Public Methods

[more] Cluster ()
Default constructor
[more] Cluster (int threshold, const TimeWindow& window)
Constructor
[more] Cluster (int threshold, const Interval& duration, const Interval& offset)
Constructor
[more] Cluster (const Condition& cond, int threshold, const TimeWindow& window)
Constructor
[more] Cluster (const Condition& cond, int threshold, const Interval& duration, const Interval& offset)
Constructor
[more]virtual Cluster* Copy () const
Copy the event
[more]virtual bool Evaluate (const Argument& arg, bool& val) const
Evaluate
[more]int GetClusters (const Argument& arg, eventlist& list) const
Evaluate
[more]const ConditionPtr& GetCondition () const
Get event condition
[more]void SetThreshold (int threshold)
Set threshold
[more]int GetThreshold () const
Get threshold
[more]void SetWindow (const TimeWindow& window)
Set time window
[more]void SetWindow (const Interval& width, const Interval& offset)
Set time window
[more]void SetOffset (const Interval& offset)
Set time offset
[more]Interval GetOffset () const
Get time offset
[more]void SetWidth (const Interval& duration)
Set time duration
[more]Interval GetWidth () const
Get time duration

Public Members

[more]typedef std::vector< const Event* > eventlist
Event list


Inherited from Condition:

Public Methods

obool operator() (const Argument& arg, bool& val) const
obool operator() (const Event& event, bool& val) const
ostatic const Condition& True()
ostatic const Condition& False()

Protected Methods

oCondition& operator= (const Condition&)


Documentation

Describes an event cluster condition. An event cluster is recognized, if the number of events which fullfill the event condition and which lie within the specfied time window around the analyzed event exceeds the threshold value. The current events are not considered.

otypedef std::vector< const Event* > eventlist
Event list

o Cluster()
Creates a default event cluster condition. All events are considered. The default threshold is three. The default window is 1s.

o Cluster(int threshold, const TimeWindow& window)
Creates an event cluster condition. All events are considered.
Parameters:
threshold - Cluster threshold (number of events)
duration - Duration of veto window
offset - Time offset for veto start (relative to event)

o Cluster(int threshold, const Interval& duration, const Interval& offset)
Creates an event cluster condition. All events are considered.
Parameters:
threshold - Cluster threshold (number of events)
duration - Duration of veto window
offset - Time offset for veto start (relative to event)

o Cluster(const Condition& cond, int threshold, const TimeWindow& window)
Creates an event cluster condition.
Parameters:
cond - Event condition for cluster participants
threshold - Cluster threshold (number of events)
duration - Duration of veto window

o Cluster(const Condition& cond, int threshold, const Interval& duration, const Interval& offset)
Creates an event cluster condition.
Parameters:
cond - Event condition for cluster participants
threshold - Cluster threshold (number of events)
duration - Duration of veto window
offset - Time offset for veto start (relative to event)

ovirtual Cluster* Copy() const
Returns a copy of the event condition. This method must be overriden by all descendents.
Returns:
event copy

ovirtual bool Evaluate(const Argument& arg, bool& val) const
Evaluate the condition. This function must be overriden by descendents.
Parameters:
- arg Event argument list
val - Condition value (return)
Returns:
True if condition could be evaluated

oint GetClusters(const Argument& arg, eventlist& list) const
Evaluates the cluster condition. Returns the number of clusters found as well as a list of them.
Parameters:
- arg Event argument list
val - Condition value (return)
- list Events belonging to the cluster (return)
Returns:
True if condition could be evaluated

oconst ConditionPtr& GetCondition() const
Get the event condition.

ovoid SetThreshold(int threshold)
Set the cluster threshold.

oint GetThreshold() const
Get the cluster threshold.

ovoid SetWindow(const TimeWindow& window)
Set the time window.

ovoid SetWindow(const Interval& width, const Interval& offset)
Set the time window.
Parameters:
width - Window duration
offset - Window offset

ovoid SetOffset(const Interval& offset)
Set the time offset.

oInterval GetOffset() const
Get the time offset.

ovoid SetWidth(const Interval& duration)
Set the time duration.

oInterval GetWidth() const
Get the time duration.


This class has no child classes.
Author:
Written June 2001 by Masahiro Ito and Daniel Sigg
Version:
1.0

Alphabetic index HTML hierarchy of classes or Java


Please send questions and comments to zweizig_j@ligo-wa.caltech.edu