Implements a computational experiment of a user system, specified in the form of an xcos-diagram, with the calculation of the parameters of the output dynamics of the system
[SystemOutputChatacteristics.. ]=AdvancedModelLearningDataEvidence(SystemOutputCharacteristicsNames,.. SystemOutputCharacteristicsNamesIndexes,SystemOutputCharacteristicsIndexes,.. SystemShemaName,SystemOutputCharacteristicsCompressionFunctions,.. SystemParametrsNames,SystemParametrsValues,absolutTolErr,.. relativeTolErr,simulationTime,timeStepMax,Solver,toleranceTime)
Array of names of system output characteristics in xcos-diagram (see block TOWS_c). Array dimension 1xM
An array of indices of the dynamics of the output characteristics in the names of the output characteristics of the system in the xcos diagram (block TOWS_c), the index of each name of the output characteristic of the system in the array SystemOutputChatacteristicsNames is set by the corresponding element array SystemOutputCharacteristicsNamesIndexes. Array dimension 1xM
Full name of the user system xcos diagram file (extension .zcos, .xcos)
Cell array (see cell arrays) functions for getting the parameters of computed dynamics, specified by SystemOutputCharacteristicsIndexes
The names of the system parameters in the xcos diagram (see the context property in Xcos diagram structure). Array of strings of dimension 1xM
System parameter values in the xcos diagram (see the context property in Xcos diagram structure), specified by the corresponding SystemParametrsNames. NxM array of real numbers (each n-th row of N rows in the matrix is the corresponding n-th dynamics)
Absolute errors of integration in xcos (see the tol (1) atol property in Xcos diagram structure) of each dynamics. Array of positive real numbers of dimension 1xN
Relative errors of integration in xcos (see the tol (2) rtol property in Xcos diagram structure) of each dynamics. Array of positive real numbers of dimension 1xN
Simulation times in xcos (see the tf property in Xcos diagram structure) of each dynamics. Array of positive real numbers of dimension 1xN
Maximum time integration steps in xcos (see the tol (7) hmax property in Xcos diagram structure) of each dynamics. Array of positive real numbers of dimension 1xN
Solver views in xcos (see the tol (6) solver property in Xcos diagram structure) of each dynamics. An array of integers ranging from 0 to 100 - solver codes. The dimension of the solver codes is 1xN
Time errors in xcos are the corresponding minimum steps of integration over time (see the tol (3) ttol property in Xcos diagram structure) for each dynamics. Array of positive real numbers of dimension 1xN
Matrix of parameters of system output characteristics. Dimension of matrix PxN
Simulates (computational experiment) a user system, specified in the form of an xcos diagram, for its various parameters (specified in the context).
Returns a matrix of speaker parameters with user-defined output characteristics of the system (in the diagram, these are given as TOWS_c blocks)
//Forming the path to the xcos-diagram Proba3.zcos [a, pathlib] = libraryinfo("computing_experimentlib"); clear a; pathlib = strncpy(pathlib, length(pathlib) - length('macros')) + 'xcos'; pathdiagram = fullfile(pathlib, 'Proba3.zcos'); //Filter functions function [parametrs]=DynamicFilterFunction1(time, value) parametrs=[sum(time.*value) / length(time), sum((time.^2).*value) / (3*length(time))]; endfunction function [parametr]=DynamicFilterFunction2(time, value) parametr=sum(time.*value) / (2*length(time)); endfunction //Array of filter functions DynamicFiltersFunctions = cell(1, 4); DynamicFiltersFunctions{1} = DynamicFilterFunction1; DynamicFiltersFunctions{2} = DynamicFilterFunction2; DynamicFiltersFunctions{3} = DynamicFilterFunction2; DynamicFiltersFunctions{4} = DynamicFilterFunction1; //Running the basic function SystemParametrsNames = ['b', 'a', 'd'];//Parameter names SystemParametrsValues = [ 1.5, 0.81, 3.81; 2.25, 0.51, 6.81; 1.11, 0.93, 3.51];//Parameter values [SystemOutputCharacteristics...//Output characteristics ]=AdvancedModelLearningDataEvidence(['A3', 'A1', 'A2'],...//System output characteristic names [1, 1, 3, 2],...//Dynamics name indices [3, 2, 1, 2],...//Dynamics indices (in dynamics names) fullfile(pathdiagram),...//System diagram name DynamicFiltersFunctions,...//Speaker compression function SystemParametrsNames,...//Parameter names that define dynamics SystemParametrsValues,...//The values of the parameters that determine the dynamics [0.5E-6,0.51E-6,0.57E-6],..//Absolute errors [0.69E-6,0.57E-6,0.75E-6],..//Relative errors [10.0,11.1,15.3],..//Simulation times [0.93E-4,0.87E-4,0.81E-4],..//Maximum time integration steps [0,3,4],..//Solvers type [2.1E-10,1.5E-10,1.23E-10]..//Time errors ); //Result disp(SystemOutputCharacteristics); | ![]() | ![]() |