Commit 73e112c
authored
Refactoring (#31)
* some refactoring
* pretty printing
* some updates for resettablerng
* deepcopy on iterate
* Move ResettableRNG to MeasureTheory
* Make Pretty a const
* drop extra spaces
* formatting
* formatting
* formatting
* add DensityInterface dependency
* faster `rootmeasure`
* updates
* primitive measure docs
* get tests passing
* cleaning up
* formatting
* 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
* merge
* partial-static
* cleanup
* fix merge bug
* fix typo
* instance_type(T::DataType)
* fine-tuning some logdensity_def methods
* Constructor method for Counting
* some adjustments to partialstatic
* update Static.dynamic(x::PartialStatic)
* back to actual tests
* update logdensity_def(d::PowerMeasure{M}, x)
* solve!
* license
* Move `solve` to MeasureTheory
* speed up likelihoods and pointwise products
* promote_rule for PartialStatic
* some updates
* logdensityof(ℓ::AbstractLikelihood, par)
* fix test bug1 parent 02cc7a2 commit 73e112c
16 files changed
Lines changed: 221 additions & 66449 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
20 | 44 | | |
21 | 45 | | |
22 | 46 | | |
23 | 47 | | |
24 | 48 | | |
25 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
26 | 56 | | |
27 | 57 | | |
28 | 58 | | |
| |||
43 | 73 | | |
44 | 74 | | |
45 | 75 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 76 | + | |
| 77 | + | |
49 | 78 | | |
50 | 79 | | |
51 | 80 | | |
| |||
58 | 87 | | |
59 | 88 | | |
60 | 89 | | |
61 | | - | |
62 | | - | |
| 90 | + | |
63 | 91 | | |
64 | 92 | | |
65 | 93 | | |
| |||
74 | 102 | | |
75 | 103 | | |
76 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
77 | 109 | | |
78 | 110 | | |
79 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
3 | 7 | | |
4 | 8 | | |
| |||
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
104 | | - | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
127 | | - | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
131 | | - | |
132 | | - | |
| 135 | + | |
| 136 | + | |
133 | 137 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | | - | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
| |||
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | | - | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | | - | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
| 69 | + | |
66 | 70 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | | - | |
14 | | - | |
| 11 | + | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 109 | + | |
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
119 | | - | |
| 117 | + | |
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
123 | | - | |
| 121 | + | |
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
| 125 | + | |
127 | 126 | | |
128 | | - | |
| 127 | + | |
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
132 | 131 | | |
133 | | - | |
| 132 | + | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
| |||
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | | - | |
168 | 166 | | |
169 | 167 | | |
170 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
38 | | - | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
0 commit comments