previous | up | next       MultiDiffMeasure class
MultiDiffMeasure |
Click on the image for a
live example |
A MultiDiffMeasure evaluates a DiffMeasure repeatedly while gradually changing one parameter in the model. The results are plotted as they arrive. Unlike most parts of catacomb, the quantities required by a MultiDiffMeasure can legitimately come from almost anywhere in the model so it uses the CatacombEditor drag and drop facility.
See the DiffMeasureEditor for details of how to use the drag and drop facilities to set the err measure and variable fields. In this case the err measure must be given an object which subclasses DiffMeasure itself. That is, an object which takes some data and a calculation and returns the difference between them. The variable field must point to a primitive floating point value somewhere in the current model. First select "show fields" in the parent of the field you want in the object browser (right click on the object to get the menu). The available fields will be shown as grey boxes. Select "copy" from the menu on the field you want, and then drop it on the variable box.
Once these two fields are set, the "run" button will run the model nstep times varying the variable in question from v-from to v-to either linearly or logarithmically.