Vector

Converters with vector input and/or vector output

Package Contents

ArithmeticMean

(Weighted) arithmetic mean

Clip

Clips input vector so that all components remain within a given interval

ComplementFractions

Taking a vector of k fractions of 1 and adding another fraction as to achieve a total of 1

ConstantConverter

A list of constant values is turned into a constant vector of signals

ConstantConverterRate

A list of constant rates is turned into a vector of rate signals

ConstantConverterTime

A list of constant time values is turned into a vector of constant time signals

DotProduct

Dot product of two vectors of equal length

GeometricMean

(Weighted) geometric mean

Max

Max function for vectors

Min

Min function for vectors

Product

Gives the product of all components of the input vector

ProportionalSplitFactors

Convert a vector of weights to a vector of fractions adding to one

Rescale

Rescales the components of input vector u to run from y_min to y_max over the range u_min to u_max

ScalarMultiplication

Multiplication of a vector with a scalar

Sum

Add two vectors of equal length

Times

Elementwise multiplication of two vectors of the same length

Total

Gives the sum over all components of a vector

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

This package ontains converters where either input or output or both can be vectors of a given dimension.

Technical Notes

There is currently no support in Wolfram SystemModeler for flexible array sizes (":") for connectors used with blocks. Therefore the actual size of array inputs has to be given as a parameter upon instantiating a converter in a model.



Copyright © 2020 Guido Wolf Reichert
Licensed under the EUPL-1.2 or later