안녕,
JMP가 Multivariate Control Chart를 사용하여 변경점 감지에 대한 경고 이메일을 보내는 방법이 있습니다.
미리 감사드립니다.
발레리
아래 접근 방식을 사용하면 어느 플랫폼에서나 경고를 보낼 수 있다고 생각합니다. 이 경우에는 테스트되지 않았습니다!
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;
);
);