Hi @mark_war ,
Without knowing exactly what kind of statistics you are looking to perform and evaluate, see the below example of how you can modify your code so that it automatically performs analyses.
Names Default to Here(1);
Profiler(
Y( :Formula ),
Profiler(
1,
Term Value(
thickness(
2.9875,
Min( 2.30771982310094 ),
Max( 3.46241935483871 ),
Lock( 0 ),
Show( 1 )
),
Voltage(
1,
Min( 0.3584375 ),
Max( 1.59908333333333 ),
Lock( 0 ),
Show( 1 )
)
),
Simulator(
1,
Factors(
thickness << Random( Normal( 2.9875, 0.2 ) ),
Voltage << Random( Normal( 1, 0.2 ) )
),
Responses( Formula << No Noise ),
Resimulate,
Simulate to Table
)
),
SendToReport(
Dispatch(
{"Prediction Profiler"},
"10000",
ScaleBox,
{Min( -0.0325024497795198 ), Max( 0.801201923076923 ), Inc( 0.2 ),
Minor Ticks( 1 )}
),
Dispatch(
{"Prediction Profiler"},
"2",
ScaleBox,
{Min( 0.3584375 ), Max( 1.59908333333333 ), Inc( 0.2 ), Minor Ticks( 1 )
}
),
Dispatch(
{"Prediction Profiler"},
"1",
ScaleBox,
{Min( 2.30771982310094 ), Max( 3.46241935483871 ), Inc( 0.2 ),
Minor Ticks( 1 )}
),
Dispatch(
{"Prediction Profiler"},
"Profiler",
FrameBox,
{Frame Size( 134, 167 )}
),
Dispatch(
{"Prediction Profiler"},
"Profiler Simulator Distribution",
FrameBox,
{Frame Size( 124, 56 )}
),
Dispatch(
{"Prediction Profiler"},
"Profiler",
FrameBox( 3 ),
{Frame Size( 134, 167 )}
),
Dispatch(
{"Prediction Profiler"},
"Profiler Simulator Distribution",
FrameBox( 2 ),
{Frame Size( 124, 56 )}
),
Dispatch(
{"Prediction Profiler"},
"Profile Simulator Histogram",
FrameBox,
{Frame Size( 64, 157 ), DispatchSeg(
Hist Seg( 1 ),
{Fill Color( "Green" ), Bin Span( 2, 0 )}
)}
),
Dispatch(
{"Prediction Profiler", "Simulator"},
"Simulate to Table",
OutlineBox,
{Close( 0 )}
)
)
);
dtlist=get data table list();//this creates a list of all the open data tables.
dt=Data Table(dtlist[1]);//this assigns the top-most data table to the variable dt so that you can perform the statistics on this data table rather than the original data table
//this sends the command to the data table to generate some distributions.
dt<<Distribution(
Continuous Distribution( Column( :thickness ) ),
Continuous Distribution( Column( :Voltage ) ),
Continuous Distribution( Column( :Formula ),
Process Capability( Use Column Property Specs )
)
);
This should at least get you started.
Hope this helps!,
DS