How to get the value of a particular row and column in an Empirical distribution table? Seems like it should be able to be referenced like a global table but that doesn't seem to work.
How to get the value of a particular row and column in an Empirical distribution table? Seems like it should be able to be referenced like a global table but that doesn't seem to work.
Hi @Allen Greenwood, was one of Ryan Clark's or Felix Möhlmann's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
The data of an empirical distribution is saved in a treenode containing bundle data in the tree of the respective "empirical distribution" object.
Values in it can be accessed with the "getbundlevalue" command.
// Get reference to the node containing the data - // replace "EmpiricalDistribution1" with the name of the distribution treenode bundle = Model.find("/Tools/EmpiricalDistributions/EmpiricalDistribution1>variables/data"); // Assign value to variable double val = getbundlevalue(bundle, <row>, <column>);
Important note: The rows ("entry") and columns ("field") of bundles are 0-indexed.
Hello @Allen Greenwood,
That's not quite how Empirical Distributions work. They work like using any other statistical distribution: you define the parameters of the distribution and FlexSim outputs a random value that fits the distribution every time the distribution is accessed. The Empirical Distribution works the same way, except you manually define the parameters.
Does that answer your question?
9 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved