Navigation
| class UniformRatioPrior( Prior ) | [source] |
|---|
Distribution of the ratio of two uniform distributed, positive variables.
A uniform ratio prior is a proper prior.
Pr( x ) = 0 if x < 0
0.5 if 0 < x < 1
0.5/x**2 if x > 1
domain2Unit.
u = 0.5 d if 0 < d < 1
1 - 0.5/d if d > 1
unit2Domain.
d = 2 u if 0 < u < 0.5
1/2(1-u) if 0.5 < u < 1
The keyword "circular" does not apply to this prior.
Examples
pr = UniformRatioPrior()
Attributes from Prior
lowLimit, highLimit, deltaP, _lowDomain, _highDomain
| UniformRatioPrior( range=None, median=1.0, limits=None, prior=None ) | [source] |
|---|
Constructor.
Parameters
- range : None or float
set limits tp [1/range, range] - median : float
median point of the ratio - limits : None or [float,float]
None no limits are set
2 floats lowlimit and highlimit - prior : UniformRatioPrior
to be copied
| copy( ) | [source] |
|---|
| getIntegral( ) | [source] |
|---|
| domain2Unit( dval ) | [source] |
|---|
Parameters
- dval : float
value within the domain of a parameter
| unit2Domain( uval ) | [source] |
|---|
Parameters
- uval : float
value within [0,1]
| result( x ) | [source] |
|---|
Parameters
- x : float or array_like
value within the domain of a parameter
| logResult( x ) | [source] |
|---|
Parameters
- x : float or array_like
value within the domain of a parameter
| partialLog( p ) | [source] |
|---|
Parameters
- p : float or array_like
the value
| isBound( ) | [source] |
|---|
| shortName( ) | [source] |
|---|
| Methods inherited from Prior |
|---|
- limitedIntegral( center=0, circular=False, limits=None )
- setLimits( limits=None )
- setPriorAttributes( limits, circular )
- isCircular( )
- limitedDomain2Unit( dval )
- limitedUnit2Domain( uval )
- circularDomain2Unit( dval )
- circularUnit2Domain( uval )
- unsetLimits( )
- setAttributes( limits=None, scale=None )
- isOutOfLimits( par )
- checkLimit( par )
- stayInLimits( par )
- hasLowLimit( )
- hasHighLimit( )
- hasLimits( )
- getLimits( )
- getRange( )
- partialDomain2Unit( p )
- numPartialDomain2Unit( dval )
- numPartialLog( p )