Skip to content

Commit

Permalink
Refactor long line
Browse files Browse the repository at this point in the history
  • Loading branch information
turion committed Oct 4, 2023
1 parent c735964 commit afa0564
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rhine-bayes/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,16 @@ data Result = Result
}
deriving (Show)

-- | A 'Result' where nothing has been inferred yet
emptyResult =
Result
{ temperature = initialTemperature
, measured = zeroVector
, latent = zeroVector
, particlesPosition = []
, particlesTemperature = []
}

-- | The number of particles used in the filter. Change according to available computing power.
nParticles :: Int
nParticles = 100
Expand Down Expand Up @@ -364,7 +374,7 @@ mainRhineMultiRate =
modelRhine
>-- keepLast (initialTemperature, (zeroVector, zeroVector)) -->
inference
>-- keepLast Result {temperature = initialTemperature, measured = zeroVector, latent = zeroVector, particlesPosition = [], particlesTemperature = []} -->
>-- keepLast emptyResult -->
visualisationRhine
{- FOURMOLU_ENABLE -}

Expand Down

0 comments on commit afa0564

Please sign in to comment.