MCParticles
MCParticles.DynamicParticleMCParticles.ParticleMCParticles.ParticleMCParticles.ParticleMCParticles.StaticParticleMCParticles.mutateMCParticles.mutateMCParticles.reweight
MCParticles.DynamicParticle — TypeDynamicParticle{T} <: Particle{T}xLocation of particleℓwLog weight of particle (possibly unnormalised)ℓdensLog density functionτTemperature (or index) for ℓdenscacheℓdensCache of log density at current temperature (or index)
MCParticles.Particle — TypeParticle{T}An abstract type with subtypes
- StaticParticle{T}
- DynamicParticle{T}
MCParticles.Particle — MethodParticle(x::T, w::Real, ℓdens::Function, τ::Real, logweight::Bool = false) where {T<:Any}Explicit constructor for Particle with type DynamicParticle. Auto calculates cached log density cacheℓdens
xLocation of particlewWeight of particle (possibly unnormalised)ℓdensLog density functionτTemperature (or index) for ℓdens
– logweight Is w on log scale? Default is false
MCParticles.Particle — MethodParticle(x::T, w::Real, logweight::Bool = false) where {T<:Any}Explicit constructor for Particle with type StaticParticle.
xLocation of particlewWeight of particle (possibly unnormalised)logweightIswon log scale? Default isfalse
MCParticles.StaticParticle — TypeStaticParticle{T} <: Particle{T}xLocation of particleℓwLog weight of particle (possibly unnormalised)
MCParticles.mutate — Methodmutate(p::DynamicParticle{T}, x::T, τ::Real = p.τ) where {T<:Any}
Mutate a particle - update the location.
- ```p``` Particle to update
- ```x``` New location of particle
- ```τ``` New temperature (or index) for ℓdens (defaults to old temperature)MCParticles.mutate — Methodmutate(p::StaticParticle{T}, x::T) where {T<:Any}Mutate a particle - update the location.
pParticle to updatexNew location of particle
MCParticles.reweight — Methodreweight(p::StaticParticle{T}, w::Real, logweight = false) where {T<:Any}Reweight a particle - update the weight.
pParticle to updatewNew weight of particlelogweightIswon log scale? Default isfalse