You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To extend constrained_gaussian constructor to multivariate distributions, having the same constraints in every dimension. It's useful for helping to define multidimensional problems defined from marginals that arise quite often
Currently
we have
constrained_gaussian("name", mean, var, lower_bound, upper_bound)
Which finds comp_mean, comp_var based on the constraints implied by the bounds
ParameterDistribution(
Dict(
"distribution"=>Parameterized(Normal(comp_mean, comp_var)),
"constraint"=><implied by bounds>,
"name"=>"name",
)
)
Extension
Called by
constrained_gaussian("name", mean, var, lower_bound, upper_bound, repeat=12)
That would produce
ParameterDistribution(
Dict(
"distribution"=>VectorOfParameterized(repeat([Normal(comp_mean, comp_var)],12)),
"constraint"=>repeat([<implied by bounds>],12)
"name"=>"name",
)
)
The text was updated successfully, but these errors were encountered:
196: ParameterDistributions.jl improvements r=odunbar a=odunbar
## Purpose
Fixes#184 and #192, also small update to remove warning in DataContainers/ParameterDistributions test. This works towards a better interface for ParameterDistributions.
## Content
- Extending `constrained_gaussian` to multidimensional distirbutions by adding a `repeats=N` keyword with `N=1` default.
- Adds Types constraints into `NoConstraint` `BoundedBelow` `BoundedAbove` and `Bounded`
- Adds "parameters" to constraints, containing a Dict (or nothing). allows extraction of values of interest. for example
`x = bounded_below(3.0)` stores `x.parameters = Dict("lower_bound" => 3.0)`
- extending `==` to Constraints (based on the above `parameters` and `Types`, as constraints are functions so hard to equate)
- extending `==` to ParameterDistributions for easier testing calls
- Miscellaneous: Removed the `MvNormal(int,real)` calls that are now deprecated, replacing with `MvN(zeros(int), real*I)`
Co-authored-by: odunbar <[email protected]>
Purpose
To extend
constrained_gaussian
constructor to multivariate distributions, having the same constraints in every dimension. It's useful for helping to define multidimensional problems defined from marginals that arise quite oftenCurrently
we have
Which finds
comp_mean
,comp_var
based on the constraints implied by the boundsExtension
Called by
That would produce
The text was updated successfully, but these errors were encountered: