Scénario de test & Cas d'usage
Simulation von 50.000 Sensor-Messwerten mit Maschinentyp und Temperatur.
| 1 | |
| 2 | DATA casuser.sensor_logs; |
| 3 | call streaminit(999); |
| 4 | DO i=1 to 50000; |
| 5 | IF rand('Uniform') < 0.5 THEN type='RoboterArm_A'; |
| 6 | ELSE type='Presse_B'; |
| 7 | temp=rand('Normal', 65, 15); |
| 8 | OUTPUT; |
| 9 | END; |
| 10 | |
| 11 | RUN; |
| 12 |
| 1 | |
| 2 | PROC CAS; |
| 3 | SIMPLE.crossTab / TABLE={name='sensor_logs'}, row='type', col='temp', colNBins=10, niceBinning=true; |
| 4 | |
| 5 | RUN; |
| 6 |
Die kontinuierliche Variable 'temp' wird automatisch in 10 lesbare Intervalle unterteilt. Die Ergebnistabelle zeigt die Häufigkeitsverteilung der Messwerte pro Maschinentyp über diese Temperaturintervalle hinweg, was eine schnelle Identifikation von Ausreißern oder Clustern ermöglicht.