Fattore categoriale, controllo della probabilità tramite scriptSto cercando di creare un codice di automazione per controllare i valori nominali tramite lo script.
Per il simulatore, vorrei impostare la probabilità dei valori. Tuttavia, non sembra funzionare.
Come posso controllare la probabilità dei valori categorizzati con lo script?
prf = Profiler(
Y( :Pred Formula Eye Height, :Pred Formula Eye Width ),
Profiler(
1,
Term Value(
Duty Cycle(0.48, Lock( 0 ), Show( 1 )),
Random Jitter(0.04, Lock( 0 ), Show( 1 )),
Deterministic Jitter(0, Lock( 0 ), Show( 1 )),
Process Variation("Normal", Lock( 0 ), Show( 1 )),
Temperature(11.25, Lock( 0 ), Show( 1 )),
Voltage(1.0, Lock( 0 ), Show( 1 ))
),
Simulator(
1,
Factors(
Duty Cycle << Random( Normal( 0.48, 0.08 ) ),
Random Jitter << Random( Normal( 0.04, 0.05 ) ),
Deterministic Jitter << Random( Normal( 0, 0 ) ),
<FONT face="arial black,avant garde">Process Variation << Distribution( {"Fast", "Slow", "Normal"}, [0.33, 0.33, 0.34] )</FONT>,
Temperature << Random( Normal( 11.25, 2 ) ),
Voltage << Random( Normal( 1.0, 0.05 ) )
),
Responses(
Pred Formula Eye Height << No Noise,
Pred Formula Eye Width << No Noise
)
)
)
);
Automazione e scriptingRe: Fattore categoriale, Controllo della probabilità tramite scriptIl problema potrebbe essere che hai Profilatore due volte? Questo è un esempio da Scripting Index che sembra inviare il simulatore dopo la creazione di Profiler.
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Tiretread.jmp");
obj = Profiler(
Y(
:Pred Formula ABRASION, :Pred Formula MODULUS, :Pred Formula ELONG,
:Pred Formula HARDNESS
)
);
obj << Simulator(
1,
Factors(
SILICA << Random(Normal(1.25, 0.3266)),
SILANE << Random(Normal weighted(50, 6.532)), SULFUR << Fixed(2.25)
),
Responses(
Pred Formula ABRASION << No Noise, Pred Formula MODULUS << No Noise,
Pred Formula ELONG << No Noise, Pred Formula HARDNESS << No Noise
)
);
Ma immagino che potresti semplicemente spostarlo all'interno del messaggio del Profiler
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Tiretread.jmp");
obj = Profiler(
Y(
:Pred Formula ABRASION, :Pred Formula MODULUS, :Pred Formula ELONG,
:Pred Formula HARDNESS
),
Term Value(
SILICA(1.75, Lock(0), Show(1)),
SILANE(45.2, Lock(0), Show(1)),
SULFUR(2.45, Lock(0), Show(1))
),
Simulator(
1,
Factors(
SILICA << Random(Normal(1.25, 0.3266)),
SILANE << Random(Normal weighted(50, 6.532)), SULFUR << Fixed(2.25)
),
Responses(
Pred Formula ABRASION << No Noise, Pred Formula MODULUS << No Noise,
Pred Formula ELONG << No Noise, Pred Formula HARDNESS << No Noise
)
)
);
Re: Fattore categoriale, Controllo della probabilità tramite scriptCiao, grazie per la risposta rapida.
Ero curioso di sapere come avrei potuto controllare la probabilità di variazione del fattore Processo.
ha 3 valori discreti: veloce, normale, lento.
Voglio simularlo con una probabilità specifica tramite uno script.
tuttavia con la sintassi seguente. Non funziona.
Posso ottenere aiuto per la sintassi corretta? Non riesco a trovare alcuna funzione pertinente.
Variazione del processo << Distribuzione( {"Veloce", "Lento", "Normale"}, [0.33, 0.33, 0.34] )Re: Fattore categoriale, Controllo della probabilità tramite scriptL'hai fatto nell'interfaccia JMP e poi hai salvato lo script? Dovrebbe avere la sintassi corretta da usare.