Commit 8744525
authored
Dev (#49)
* drop some unneeded methods
* update for DensityInterface
* updating densities to DensityInterface approach
* update domains
* moving things around
* updates to IntegerBounds
* more domain mucking
* fix some exports
* update deps
* update `using`
* working on tests
* Working toward tests passing
* some refactoring
* working on tests
* cleaning up
* get tests to pass
* tests passing
* update logdensity_def for pointwise product
* PrettyPrinting + tests
* speed up `rootmeasure`
* oops didn't mean to include that
* tile(::FactoredBase)
* Update Half and FactoredBase
* drop exp.jl
* simplify basemeasure
* drop old `include`
* drop redundant method
* update compat Returns
* add AbstractDensity
* Move Affine to MeasureTheory
* drop some old `For` code
* update counting measure
* add testvalue(::Type{T})
* bugfix
* some dispatch adjustments
* simplify show
* formatting
* transformed measures
* ZeroSets
* using LinearAlgebra, Statistics
* working on MeasureTheory tests
* updates
* updates
* typo
* update default to mimic Base
* fix tile(::Lebesgue)
* Add test_interface function
* small doc update
* DensityKind(::Likelihood)
* fixing show(::Likelihood)
* adding some docs
* update `rand` method
* drop old integration code
* add `rebase`
* export rebase
* law for ⊗
* typo
* Make Likelihood more flexible
* update kernel methods
* add Likelihood method (avoid stack overflow)
* refactoring
* compat
* Maybe Comat just works?
* refactoring
* some new stuff
* working on tests
* update powermeasure combinator
* bugfix
* comment out debugging lines
* more refactoring
* test @inferred basemeasure_depth(μ)
* drop `constructor` (just use ConstructionBase.constructorof`)
* debugging
* update help
* update interface
* make tests harder
* fixes
* Dirac bugfix
* formatting
* improve type inference
* working on type inference
* update interface
* udpates
* get test passing
* @test !isabstracttype(typejoin(...))
* work on show methods
* update CI
* remove old code
* update productmeasure
* prettyprinting stuff
* Drop te @constprop :aggressive stuff (maybe don't need it?)
* nerline
* dropping some old code
* update tbasemeasure_type(::PowerMeasure)
* moar tests
* update SpikeMixture
* update superpose type parameter name
* drop old tests
* func_string
* more updates
* getting closer
* almost there!
* generated function for type stability
* tests passing!
* newline
* more fixes
* exports and bugfix
* insupport(μ::Counting{T}, x) where {T<:Type}
* working on MeasureTheory tests
* MeasureTheory tests passing
* drop some old code
* inlining
* improve inference
* update `tile(::For)`
* tighten down infrerence
* update basemeasure(::For) for generators
* loosen type bound on instance_type
* drop debugging code
* small update for Likelihood, and a test
* fixing up likelihoods
* improve `basemeasure_depth` dispatch
* still some trouble with inferred basemeasure_depth
* clean up `For` dispatch
* simplify _logdensityof
* optimize for Returns{True} case
* rework basemeasure_depth
* aggressive tests passing!!
* drop type-level stuff
* drop help
* license
* affero
* copyright notice
* merge
* Drop Create Commons
* cleanup after merge
* update support computations
* insupport(d::SuperpositionMeasure, x)
* dorp ParamWeighted
* insupport(d::FactoredBase, x)
* export unsafe_logdensityof
* call promote_type instead of promote_rule
* logdensity_def for named tuple product measures
* type annotation for now
* debugging
* drop shows
* speed up mapped arrays
* throw an error for `Union{}` types
* MT tests passing
* updates
* get tests passing
* MIT license for MeasureBase
* bump version
* cleanup
* spacing
* Move ConditionalMeasure to MeasureBase
* add LogarithmicNumbers
* export basemeasure_sequence
* update superpose
* fix logdensity_rel
* remove FIXME (it's fixed!!)
* logdensityof(d::Density, x)
* simplify insupport(::Lebesgue, ::Real)
* clean up
* assume insupport yields Bool
* change logdensity_rel fall-through to warning and return NaN
* update logdensity_rel
* drop old code
* fix warning
* export logdensity_rel
* logdensity_def(μ::Dirac, ν::Dirac, x)
* logdensity_def methods
* drop `static`
* ]add StatsFuns
* Fixing up superposition
* [compat] entries
* trying to speed things up
* bugfixes
* logdensity_rel tests
* logdensity_rel tests
* drop qualifier, and add a test
* more tests
* type constraint in "logdensityof(μ::AbstractMeasure, x)" (was piracy, oops)
* add some docs
* docs
* docs
* typo
* moar speed
* don't export Test
* some more updates
* logdensity_rel for products
* `kleisli` docs
* update instance_type
* instance_type => Core.Typeof
* `powermeasure` bug fix
* fix logdensity_rel bug
* get `commonbase` to take x type into account
* test powers
* commonbase docstring
* deprecate instance_type
* avoid breakage
* switch || terms
* @ifelse macro
* simplify logdensity_rel
* give up on this @ifelse business
* bump version
* working on likelihoods
* update likelihood
* powerweightedmeasure
* powerweighted update
* more powerweighted methods
* bugfix
* dropFactoredBase
* drop FactoredBase
* (::ProductMeasure) | constraint
* update conditional measure
* update Dirac
* move conditional.jl down in the `include`s
* Kleisli => TransitionKernel
* simplify logdensity_def(::PowerMeasure, x)
* rename kleisli.jl to kernel.jl
* update Dirac tests
* update Half
* get tests passing
* update kernel
* Update Project.toml
* no call-site inlining
* restrict single-arg `kernel` to <:ParameterizedMeasure
* export log_likelihood_ratio
* Drop DensityKind(::Likelihood), at least for now
* isfinite(x) instead of x>-Inf
* add `condition` constructor
* EOF newline
* simplify logdensity_def for power measures
* finishing up1 parent e6dcca1 commit 8744525
File tree
22 files changed
+335
-319
lines changed- src
- combinators
- primitives
- test
22 files changed
+335
-319
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
55 | 56 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | | - | |
| 99 | + | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
106 | | - | |
| 105 | + | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | | - | |
114 | 112 | | |
115 | 113 | | |
116 | | - | |
117 | 114 | | |
118 | 115 | | |
119 | 116 | | |
| |||
123 | 120 | | |
124 | 121 | | |
125 | 122 | | |
| 123 | + | |
| 124 | + | |
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 15 | + | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
| |||
27 | 22 | | |
28 | 23 | | |
29 | 24 | | |
30 | | - | |
| 25 | + | |
| 26 | + | |
31 | 27 | | |
32 | 28 | | |
33 | | - | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | | - | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
92 | | - | |
| 98 | + | |
| 99 | + | |
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
| |||
109 | 116 | | |
110 | 117 | | |
111 | 118 | | |
112 | | - | |
| 119 | + | |
113 | 120 | | |
114 | | - | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
131 | | - | |
132 | | - | |
133 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | | - | |
136 | | - | |
137 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 6 | | |
12 | 7 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 8 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
28 | 14 | | |
29 | 15 | | |
30 | 16 | | |
31 | 17 | | |
32 | | - | |
33 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
34 | 21 | | |
35 | 22 | | |
36 | 23 | | |
37 | | - | |
| 24 | + | |
38 | 25 | | |
39 | 26 | | |
40 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | 68 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 69 | + | |
| 70 | + | |
74 | 71 | | |
75 | | - | |
76 | 72 | | |
77 | 73 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
88 | 78 | | |
89 | 79 | | |
90 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments