The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

CElliott (12) [Avatar] Offline
#1
This example does not work; temperature is undefined:

import com.cra.figaro.algorithm.sampling.Importance
def greaterThan50(d: Double) = d > 50
println(Importance.probability(temperature, greaterThan50 _))

Avi Pfeffer (0101-01-01 00:00:00+00:00). Practical Probabilistic Programming MEAP v11 (Kindle Locations 900-902). Manning Publications Co.. Kindle Edition.
avi.pfeffer (102) [Avatar] Offline
#2
Hi,

temperature is defined in the previous paragraph with the lines

import com.cra.figaro.library.atomic.continuous.Normal
val temperature = Normal(40, 100)

Thanks,

Avi