從峰值讀取數據 - 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);