从峰值读取数据 - y 和 x 数据你好,
我有 JMP 18,正在寻找一种方法来读取最大峰值 - 我想要获得最大 y 和等效 x 值。
基础数据分析与建模回复:从峰值读取数据 - y 和 x 数据这是一个简单的脚本,它将值写入日志
names default to here(1);
dt = current data table();
theRow = (dt << get rows where(col max(:signal)==:signal))[1];
show(:"time, min"n[theRow],:signal[theRow]);
回复:从峰值读取数据 - y 和 x 数据你好,非常感谢你的宝贵意见。
有没有办法为所有 ID 进行数据挑选?
回复:从峰值读取数据 - y 和 x 数据它只需要对我最初提供的 JSL 进行简单的修改。

names default to here(1);
dt = current data table();
// Find all of the peaks
theRows = (dt << get rows where(col max(:signal, :ID)==:signal));
// Display results
New window("Peak Maximums",
table box(
string col box("ID", :ID[theRows]),
number col box("time, min",:"time, min"n[theRows]),
number col box("signal", :signal[theRows])
)
);
// Select the rows in the data table
dt << clear select;
dt << select rows(theRows);