ContinuousMean

Calculates the empirical expectation (mean) value of its input signal

    ContinuousMean

Library

Modelica/Blocks/Math

Description

This block continuously calculates the mean value of its input signal. It uses the function:

     integral( u over time)y = ------------------------        time - startTime

This can be used to determine the empirical expectation value of a random signal, such as generated by the Noise blocks.

The parameter t_eps is used to guard against division by zero (the mean value computationstarts at <simulation start time> + t_eps and before that time instant y = u).

See also the Mean block for a sampled implementation.

This block is demonstrated in the examplesUniformNoiseProperties andNormalNoiseProperties.

Parameters

ContinuousMean_0

NameLabelDescriptionData TypeValid Values

mo_t_eps

t_eps

Mean value calculation starts at startTime + t_eps

Scalar

mo_t_0

t_0

Start time

Scalar

ContinuousMean_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'mu'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Noisy input signal

input

1

y

implicit

Expectation (mean) value of the input signal

output

1

See Also