modelica / ModelicaStandardLibrary

Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
https://doc.modelica.org
BSD 3-Clause "New" or "Revised" License
465 stars 166 forks source link

Mathematical mean functions #1400

Open modelica-trac-importer opened 7 years ago

modelica-trac-importer commented 7 years ago

Reported by kdavies on 17 Jan 2014 00:39 UTC This ticket is to add a package of mathematical mean functions to Modelica.Math. They were necessary for a model library I created and maybe they are useful to others.


Migrated-From: https://trac.modelica.org/Modelica/ticket/1400

modelica-trac-importer commented 7 years ago

Comment by hansolsson on 17 Jan 2014 09:20 UTC I think we need to consider these in more detail: first and foremost exactly what we need in MSL (do we need mean-functions at all? other similar functions? the median? as blocks as well?), and then where to place these functions.

Looking at the proposed implementation I see two issues:

modelica-trac-importer commented 7 years ago

Comment by Kevin Davies on 17 Jan 2014 15:56 UTC I understand. I was hesitant myself (re: if and where they should be included in MSL), but I thought I may as well share them. You can close this if you want. If you decide to take it, then I'll improve the implementation.

beutlich commented 7 years ago

@kdavies4 @HansOlsson Can this issue be closed now that there is Mean, RectifiedMean, ContinuousMean, RootMeanSquare, Variance and StandardDeviation in Modelica.Blocks.Math of MSL v3.2.2?

HansOlsson commented 7 years ago

I don't think we can close this just because there are blocks for Mean etc; since these functions could be used to perform analysis inside algorithms.