嗨,您好,
有一種方法可以使JMP使用多變量控製圖發送警報電子郵件以進行更改點檢測。
提前致謝,
瓦萊麗
使用以下方法,我想您可以從或多或少從任何平台發送警報。 在這種情況下,未經測試!
NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Quality Control/Gravel.jmp");
// Do the change point detection
mvcc = dt << Multivariate Control Chart(
Y( :Large, :Medium ),
T Square Chart( 0 ),
Change Point Detection( 1 ),
SendToReport(
Dispatch(
{"Change Point Detection"},
"Change Point Detection",
FrameBox,
{Frame Size( 338, 127 )}
)
)
);
// Get the data 'behind' the Test Statistic plot
fb = Report(mvcc)[FrameBox(1)];
seg = (fb << Find Seg( Marker Seg( 1 ) ));
x = seg << getXvalues;
y = seg << getYvalues;
// Find any test statistics bigger than 1.0
bigYpos = Loc(y > 1.0);
// Alert on the first exception (if there is one)
if (NRow(bigY) > 0,
vVal = y[bigYpos[1]];
xVal = x[bigYpos[1]];
Mail(
"ian.cox@jmp.com",
"Change Point Detected",
"At row number "||Char(xVal)||".",
dt << getName;
);
);