-
Advanced capstone 2.3
For 2.3 does the modified section of my function and the functional forms look correct and what am i missing. This is only the top half of the function
.f1.checkSensor:{[raceTab;lapTab;mysensor]
sensorDict:
temp
tyrewind
all!(“temp*”; “tyre*”; “wind*”; “*”);// Get avg benchmark values from historical lap data // THESE
/benchmark:select benchmarkValue:avg sensorValue by sensorId from lapTab;
benchmark:?[lapTab;();enlist[
sensorId]!enlist[
sensorId];(benchmarkValue!(avg;
sensorValue))]/?[t;whereClause;byClause;returnClause] // LINES
// Calculate avg value as well as standard deviation from new sensor data (from raceTab) // TO BE
/chk:select avgValue:avg sensorValue, // REPLACED
/ stdDevValue:dev sensorValue // IN .f1.checkSensorFunc
/ by sensorId from raceTab; // INTO THEIR FUNCTIONAL FORM
chk:?[raceTab;();enlist[
sensorId]!enlist[
sensorId];(avgValue
stdDevValue!((avg;sensorValue);(dev;
sensorValue)))]
Log in to reply.