VILLASframework
Modular co-simulation framework
Average signal values

The average hook calculates arithmetic mean over a set of signals and insert it as a new value to the samples.

Implementation

The source code of the hook is available here: https://git.rwth-aachen.de/acs/public/villas/node/blob/master/lib/hooks/average.cpp

Configuration

signals (list of signal names or signal indices)

offset (integer)

The signal offset at which the average signal should be inserted.

Example

@include "hook-nodes.conf"
paths = (
{
in = "signal_node"
out = "file_node"
hooks = (
{
type = "average"
signals = [ "sine", "square" ]
offset = 0
}
)
}
)