Files
intellecton/venv/lib/python3.12/site-packages/matplotlib/__pycache__/scale.cpython-312.pyc
T

323 lines
36 KiB
Plaintext
Raw Normal View History

Ë
†Rj,iã óVdZddlZddlZddlZddlZddlmZmZddl m
Z
m Z m Z m
Z
mZmZmZmZmZmZmZddlmZmZGdd«ZGdd e«ZGd
d e«ZGd d
e«ZGdde«ZGdde«ZGdde«ZGdde«ZGdde«Z Gdde«Z!Gdde«Z"Gdde«Z#Gdde«Z$Gd „d!e«Z%Gd"„d#e«Z&Gd$„d%e«Z'Gd&„d'e«Z(eee"e%e(eed(œZ)d)„Z*d*„Z+e+jr1e+jd+d,jYe-e.e*«««ize+_d-„Z/d.„Z0ejbjed/d,jYe*«Dcgc]
}e.|«Œ c}«ze0«jg«¬0«ycc}w)1a²
Scales define the distribution of data values on an axis, e.g. a log scaling.
The mapping is implemented through `.Transform` subclasses.
The following scales are built-in:
.. _builtin_scales:
============= ===================== ================================ =================================
Name Class Transform Inverted transform
============= ===================== ================================ =================================
"asinh" `AsinhScale` `AsinhTransform` `InvertedAsinhTransform`
"function" `FuncScale` `FuncTransform` `FuncTransform`
"functionlog" `FuncScaleLog` `FuncTransform` + `LogTransform` `InvertedLogTransform` + `FuncTransform`
"linear" `LinearScale` `.IdentityTransform` `.IdentityTransform`
"log" `LogScale` `LogTransform` `InvertedLogTransform`
"logit" `LogitScale` `LogitTransform` `LogisticTransform`
"symlog" `SymmetricalLogScale` `SymmetricalLogTransform` `InvertedSymmetricalLogTransform`
============= ===================== ================================ =================================
A user will often only use the scale name, e.g. when setting the scale through
`~.Axes.set_xscale`: ``ax.set_xscale("log")``.
See also the :ref:`scales examples <sphx_glr_gallery_scales>` in the documentation.
Custom scaling can be achieved through `FuncScale`, or by creating your own
`ScaleBase` subclass and corresponding transforms (see :doc:`/gallery/scales/custom_scale`).
Third parties can register their scales by name through `register_scale`.
éN)Ú_apiÚ
_docstring) Ú
NullFormatterÚScalarFormatterÚLogFormatterSciNotationÚLogitFormatterÚ NullLocatorÚ
LogLocatorÚ AutoLocatorÚAutoMinorLocatorÚSymmetricalLogLocatorÚ AsinhLocatorÚ LogitLocator)Ú TransformÚIdentityTransformcó(eZdZdZdZdZdZdZy)Ú ScaleBasea
The base class for all scales.
Scales are separable transformations, working on a single dimension.
Subclasses should override
:attr:`name`
The scale's name.
:meth:`get_transform`
A method returning a `.Transform`, which converts data coordinates to
scaled coordinates. This transform should be invertible, so that e.g.
mouse positions can be converted back to data coordinates.
:meth:`set_default_locators_and_formatters`
A method that sets default locators and formatters for an `~.axis.Axis`
that uses this scale.
:meth:`limit_range_for_scale`
An optional method that "fixes" the axis range to acceptable values,
e.g. restricting log-scaled axes to positive values.
cóy)a‰
Construct a new scale.
Notes
-----
The following note is for scale implementers.
For back-compatibility reasons, scales take an `~matplotlib.axis.Axis`
object as first argument. However, this argument should not
be used: a single scale object should be usable by multiple
`~matplotlib.axis.Axis`\es at the same time.
©ÚselfÚaxiss úS/home/antigravity/intellecton/venv/lib/python3.12/site-packages/matplotlib/scale.pyÚ__init__zScaleBase.__init__Dóócót«)zL
Return the `.Transform` object associated with this scale.
©ÚNotImplementedError©rs rÚ
get_transformzScaleBase.get_transformRs
ô#rcót«)zi
Set the locators and formatters of *axis* to instances suitable for
this scale.
rrs rÚ#set_default_locators_and_formattersz-ScaleBase.set_default_locators_and_formattersXs
ô
#rcó
||fS)
Return the range *vmin*, *vmax*, restricted to the
domain supported by this scale (if any).
*minpos* should be the minimum positive value in the data.
This is used by log scales to determine a minimum value.
r©rÚvminÚvmaxÚminposs rÚlimit_range_for_scalezScaleBase.limit_range_for_scale_sðTˆrN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rr!r#r)rrrrr.sñò*  ò rrcó&eZdZdZdZdZdZdZy)Ú LinearScalez#
The default linear scale.
Úlinearcóy)z
Nrrs rrzLinearScale.__init__qrrcóˆ|jt««|jt««|j t ««|j dk(rtjds"|j dk(r-tjdr|jt««y|jt««y©xzxtick.minor.visibleÚyzytick.minor.visible© Úset_major_locatorr Úset_major_formatterrÚset_minor_formatterrÚ axis_nameÚmplÚrcParamsÚset_minor_locatorr r rs rr#z/LinearScale.set_default_locators_and_formattersxó…à ×Ñœ{›}Ô × Ñ ¤Ó!2Ô × Ñ ¤£Ô N‰N˜ !¤c§l¡lÐ3HÒ&IØ %¬#¯,©,Ð7LÒ*MØ × "Ô#3Ó#5Õ × "¤;£=Õ 1rcót«S)z€
Return the transform for linear scaling, which is just the
`~matplotlib.transforms.IdentityTransform`.
)rr s rr!zLinearScale.get_transform„s
ô
"rN)r*r+r,r-Únamerr#r!rrrr/r/jsñð €Dò ò
#rr/có6eZdZdZdxZZˆfdZdZdZˆxZ S)Ú
FuncTransformzi
A simple transform that takes and arbitrary function for the
forward and inverse transform.
écó€t|«t|«rt|«r||_||_yt d«)
Parameters
----------
forward : callable
The forward function for the transform. This function must have
an inverse and, for best behavior, be monotonic.
It must have the signature::
def forward(values: array-like) -> array-like
inverse : callable
The inverse of the forward function. Signature as ``forward``.
z,arguments to FuncTransform must be functionsN)ÚsuperrÚcallableÚ_forwardÚ_inverseÚ
ValueError)rÚforwardÚinverseÚ __class__s €rrzFuncTransform.__init__”s9ø€ô ÑÔÜ  ¤¨'Ô!2Ø#ˆDŒMØ#ˆDÐ Lrcó$|j|«S©N)rG©rÚvaluess rÚtransform_non_affinez"FuncTransform.transform_non_affine©sØ}‰}˜$rcóBt|j|j«SrN)rBrHrGr s rÚinvertedzFuncTransform.inverted¬sܘTŸ]™]¨D¯M©MÓ:r©
r*r+r,r-Ú
input_dimsÚ output_dimsrrQrSÚ
__classcell__©rLs@rrBrBŒs$ø„ñð
 €JôMò*;rrBcó&eZdZdZdZdZdZdZy)Ú FuncScalezN
Provide an arbitrary scale with user-supplied function for the axis.
Úfunctioncó4|\}}t||«}||_y)a•
Parameters
----------
axis : `~matplotlib.axis.Axis`
The axis for the scale.
functions : (callable, callable)
two-tuple of the forward and inverse functions for the scale.
The forward function must be monotonic.
Both functions must have the signature::
def forward(values: array-like) -> array-like
N)rBÚ
_transform)rrÚ functionsrJrKÚ transforms rrzFuncScale.__init__·s!ðˆÜ! '¨7Ó3ˆ Ø#ˆrcó|jS)z7Return the `.FuncTransform` associated with this scale.©r]r s rr!zFuncScale.get_transformÉó àÐrcóˆ|jt««|jt««|j t ««|j dk(rtjds"|j dk(r-tjdr|jt««y|jt««yr3r6rs rr#z-FuncScale.set_default_locators_and_formattersÍr>rN)r*r+r,r-r@rr!r#rrrrZrZ°sñð €Dò$ò$ó
2rrZcó:eZdZdxZZdˆfd„ ZdZdZdZˆxZ S)Ú LogTransformrCcó˜t|«|dks|dk(r td«||_t j
dddœ|¬«|_y)NrrCz#The log base cannot be <= 0 or == 1TF©ÚclipÚmask©Ú nonpositive)rErrIÚbaserÚ
check_getitemÚ_clip)rrlrkrLs €rrzLogTransform.__init__ÝsKø€Ü
ÑÔØ 1Š9˜ š ÜÐ ˆŒ Ü×  )°{ôDˆ
rcó†djt|«j|j|jrd«Sd«S)Nz{}(base={}, nonpositive={!r})rhri)ÚformatÚtyper*rlrnr s rÚ__str__zLogTransform.__str__åsAØ.× ‹J× Ñ  §¡°d·j²j¨FóNð NØFLóNð Nrcó¾tjdd¬«5tjtjdtjdtj
ij
|j«}|r ||«}n7tj|«}|tj|j«z}|jrd||dk<ddd«|S#1swYSxYw)ignore©ÚdivideÚinvalidéé
éüÿÿr) ÚnpÚerrstateÚlogÚlog2Úlog10Úgetrlrn)rrPr~Úouts rrQz!LogTransform.transform_non_affineéä
[‰[ °(Ô
—4‘4œŸ ¤B§G¡G¨R´·±Ð:×>¸t¿y¹yÓIˆÙ˜&“k‘ä—f‘f˜V“nØ”r—v‘v˜dŸi™iÓ(ØzŠzð$)F˜a ÷# )ð$ˆ
÷% )ð$ˆ
ús ˜B0CÃCcó,t|j«SrN)ÚInvertedLogTransformrlr s rrSzLogTransform.invertedÿsÜ# D§I¡IÓ.r)rh©
r*r+r,rUrVrrrrQrSrWrXs@rrereÚs#ø„Ø Ð €JõDòNòö,/rrecó8eZdZdxZZˆfdZdZdZdZˆxZ S)r„rCcó0t|«||_yrN)rErrl)rrlrLs €rrzInvertedLogTransform.__init__sø€Ü
ÑÔØˆ rcóLt|«jd|jdS)Nz(base=ú))rqr*rlr s rrrzInvertedLogTransform.__str__
s$Üt“*×& f¨T¯Y©Y¨K°qÐ9rcóBtj|j|«SrN)r{ÚpowerrlrOs rrQz)InvertedLogTransform.transform_non_affine
sÜx‰x˜Ÿ ™  *rcó,t|j«SrN)rerlr s rrSzInvertedLogTransform.invertedsܘDŸI™IÓ&rr…rXs@rr„r„s!ø„Ø Ð €Jôò'rr„cóHeZdZdZdZddddœdZed«Zd „Zd
Z d Z
y) ÚLogScalezT
A standard logarithmic scale. Care is taken to only plot positive values.
r~ryNrh)rlÚsubsrkcó4t||«|_||_y)
Parameters
----------
axis : `~matplotlib.axis.Axis`
The axis for the scale.
base : float, default: 10
The base of the logarithm.
nonpositive : {'clip', 'mask'}, default: 'clip'
Determines the behavior for non-positive values. They can either
be masked as invalid, or clipped to a very small positive number.
subs : sequence of int, default: None
Where to place the subticks between each major tick. For example,
in a log10 scale, ``[2, 3, 4, 5, 6, 7, 8, 9]`` will place 8
logarithmically spaced minor ticks between each major tick.
N)rer]r)rrrlrrks rrzLogScale.__init__sô ' t¨[Ó9ˆŒØˆ rcó.|jjSrN©r]rlr s rú<lambda>zLogScale.<lambda>-ó §¡×!5Ñ!5€rcóV|jt|j««|jt |j««|j t|j|j ««|jt |j|j du¬««y)N)Ú
labelOnlyBase)r7r
rlr8rr=rr9rs rr#z,LogScale.set_default_locators_and_formatters/sxà ×Ñœz¨$¯)©)Ó × Ñ Ô!8¸¿¹Ó!CÔ ×Ñœz¨$¯)©)°T·Y±YÓ × Ñ Ü # D§I¡IØ37·9±9ÀDÐ3Hô
Kõ Lrcó|jS)z6Return the `.LogTransform` associated with this scale.rar s rr!zLogScale.get_transform8rbrcóVtj|«sd}|dkr|n||dkr|fS|fS)z$Limit the domain to positive values.gYóøÂr©r{Úisfiniter%s rr)zLogScale.limit_range_for_scale<s>ä{‰{˜ˆ !š)¨Ø !š)ð /Ø)-ð /r) r*r+r,r-r@rÚpropertyrlr#r!r)rrrs7ñð €Dà%'¨dÀôñ& Ñ 6€DòLòó/rcó2eZdZdZdZddZed«ZdZy)Ú FuncScaleLogzu
Provide an arbitrary scale with user-supplied function for the axis and
then put on a logarithmic axes.
Ú functionlogcóV|\}}d|_t||«t|«z|_y)
Parameters
----------
axis : `~matplotlib.axis.Axis`
The axis for the scale.
functions : (callable, callable)
two-tuple of the forward and inverse functions for the scale.
The forward function must be monotonic.
Both functions must have the signature::
def forward(values: array-like) -> array-like
base : float, default: 10
Logarithmic base of the scale.
N)rrBrer])rrr^rlrJrKs rrzFuncScaleLog.__init__Ms-ð"ˆØˆŒ ܰÓ9¼LÈÓ<NÑNˆrcóB|jjjSrN)r]Ú_brlr s rrlzFuncScaleLog.basebsà×!×&rcó|jS)z3Return the `.Transform` associated with this scale.rar s rr!zFuncScaleLog.get_transformfrbrN)ry) r*r+r,r-r@rrrlr!rrrrrEs-ñð
€DóOð*ñðrrcó2eZdZdxZZˆfdZdZdZˆxZS)ÚSymmetricalLogTransformrCcót|«|dkr td«|dkr td«|dkr td«||_||_||_|d|jdzz
z |_tj|«|_ y)ð?z'base' must be larger than 1çz'linthresh' must be positivez'linscale' must be positiveéÿÿÿÿ)
rErrIrlÚ linthreshÚlinscaleÚ
_linscale_adjr{r~Ú _log_base)rrlrLs €rrz SymmetricalLogTransform.__init__ns†ø€Ü
ÑÔØ 3Š;ÜÐ ˜Ò ÜÐ sŠ?ÜÐ ˆŒ ØŒØ ˆŒ
Ø&¨#°· ± ¸R±Ñ*?ÑÔÜŸ ˆrcóŽtj|«}tjdd¬«5tj|«|jz|j
tj ||jz «|jz zz}||jk}ddd«||j
z|<|S#1swYŒ xYw©Nrtru)r{Úabsr|Úsignr©r~©rrPÚabs_arÚinsides rrQz,SymmetricalLogTransform.transform_non_affine|Üv“ˆÜ
[‰[ °(Ô
—''˜&“/ D§N¡NÑ×u˜tŸ~™~Ñ·±Ñ@ñAˆCð˜dŸn™nÑ,ˆ
˜Vn t×'9Ñ'9Ñ9ˆˆF‰ ؈
÷
 -ús ­A/B;Â;CcóXt|j|j|j«SrN)ÚInvertedSymmetricalLogTransformrlr s rrSz SymmetricalLogTransform.inverted†s"Ü.¨t¯y©y¸$¿.¹.Ø/3¯}©}ó >r© r*r+r,rUrVrrQrSrWrXs@rksø„Ø Ð €Jô ö>rcó2eZdZdxZZˆfdZdZdZˆxZS)rCcóÆt|«t|||«}||_||_|j |«|_||_|d|jdzz
z |_y)Nr¦) rErrlr_Ú invlinthreshrª)rrlÚsymlogrLs €rrz(InvertedSymmetricalLogTransform.__init__Žs^ø€Ü
ÑÔܨy¸(ÓØˆŒ Ø"ˆŒØ"×,¨YÓÔØ ˆŒ
Ø&¨#°· ± ¸Ñ*?Ñ@ˆÕrcóŠtj|«}tjdd¬«5tj|«|jztj
|j ||jz |jz
«z}||jk}ddd«||jz |<|S#1swYŒ xYw) r{r|rrls rrQz4InvertedSymmetricalLogTransform.transform_non_affine—Üv“ˆÜ
[‰[ °(Ô
—''˜&“/ D§N¡NјŸØ §¡Ñ/°$×2DÑ2DÑFñGˆ˜d×/ˆ
˜Vn t×'9Ñ'9Ñ9ˆˆF‰ ؈
÷
 0ús ­A-B9Â9CcóXt|j|j|j«SrN)rlr s rrSz(InvertedSymmetricalLogTransform.inverted¡s$Ü& t§y¡yØ'+§~¡~°t·}±}óFð FrrXs@rsø„Ø Ð €JôBòöFrcóheZdZdZdZdddddœdZed „«Zed
«Zed «Z d Z
d
Z y)ÚSymmetricalLogScaleac
The symmetrical logarithmic scale is logarithmic in both the
positive and negative directions from the origin.
Since the values close to zero tend toward infinity, there is a
need to have a range around zero that is linear. The parameter
*linthresh* allows the user to specify the size of this range
(-*linthresh*, *linthresh*).
See :doc:`/gallery/scales/symlog_demo` for a detailed description.
Parameters
----------
base : float, default: 10
The base of the logarithm.
linthresh : float, default: 2
Defines the range ``(-x, x)``, within which the plot is linear.
This avoids having the plot go to infinity around zero.
subs : sequence of int
Where to place the subticks between each major tick.
For example, in a log10 scale: ``[2, 3, 4, 5, 6, 7, 8, 9]`` will place
8 logarithmically spaced minor ticks between each major tick.
linscale : float, optional
This allows the linear range ``(-linthresh, linthresh)`` to be
stretched relative to the logarithmic range. Its value is the number of
decades to use for each half of the linear range. For example, when
*linscale* == 1.0 (the default), the space used for the positive and
negative halves of the linear range will be equal to one decade in
the logarithmic range.
ryrxNrC)rlrcó6t|||«|_||_yrN)r]r)rrrlrs rrzSymmetricalLogScale.__init__ÊsÜ1°$¸ À8ӌ؈ rcó.|jjSrNrr s rr“zSymmetricalLogScale.<lambda>Îr”rcó.|jjSrN)r]r s rr“zSymmetricalLogScale.<lambda>Ïs d§o¡o×&?Ñ&?€rcó.|jjSrN)r]r s rr“zSymmetricalLogScale.<lambda>Ðs T§_¡_×%=Ñ%=€rcó4|jt|j«««|jt |j
««|j
t|j«|j««|jt««yrN)
r7r
r!r8rrlr=rr9rrs rr#z7SymmetricalLogScale.set_default_locators_and_formattersÒsqà ×ÑÔ4°T×5GÑ5GÓ5IÓ × Ñ Ô!8¸¿¹Ó!CÔ ×ÑÔ4°T×5GÑ5GÓ5IØ59·Y±Yó @ô Aà × Ñ ¤£Õ1rcó|jS)zAReturn the `.SymmetricalLogTransform` associated with this scale.rar s rr!z!SymmetricalLogScale.get_transformÚrbr) r*r+r,r-r@rrrlr#r!rrr¦sJñ ðB €Dà%'°1¸4È!ôñ Ñ 6€DÙÑ@€IÙÑ>€Hòrcó6eZdZdZdxZZˆfdZdZdZˆxZ S)ÚAsinhTransformz<Inverse hyperbolic-sine transformation used by `.AsinhScale`rCcóPt|«|dkr td«||_y)Nr§z8Scale parameter 'linear_width' must be strictly positive)rErrIÚ linear_width©rrLs €rrzAsinhTransform.__init__ãs0ø€Ü
ÑÔØ ˜3Ò Üð
(ˆÕrcó`|jtj||jz «zSrN)r{ÚarcsinhrOs rrQz#AsinhTransform.transform_non_affineês'Ø× Ñ ¤2§:¡:¨f°t×7HÑ7HÑ.HÓ#IÑIrcó,t|j«SrN)ÚInvertedAsinhTransformrÈr s rrSzAsinhTransform.invertedísÜ% d×&7Ñ&7Ó8rrTrXs@rßs ø„Ù Ð €JôJö9rcó6eZdZdZdxZZˆfdZdZdZˆxZ S)z4Hyperbolic sine transformation used by `.AsinhScale`rCcó0t|«||_yrN)rErs €rrzInvertedAsinhTransform.__init__õsø€Ü
ÑÔØÕrcó`|jtj||jz «zSrN)r{ÚsinhrOs rrQz+InvertedAsinhTransform.transform_non_affineùs'Ø× Ñ ¤2§7¡7¨6°D×4EÑ4EÑ+EÓ#FÑFrcó,t|j«SrN)r s rrSzInvertedAsinhTransform.invertedüóܘd×0rrTrXs@rñs ø„Ù Ð €JôGö1rc ódeZdZdZdZddddddddd œZd
d d d
œˆfd
Zed«ZdZ dZ
ˆxZ S)Ú
AsinhScaleaì
A quasi-logarithmic scale based on the inverse hyperbolic sine (asinh)
For values close to zero, this is essentially a linear scale,
but for large magnitude values (either positive or negative)
it is asymptotically logarithmic. The transition between these
linear and logarithmic regimes is smooth, and has no discontinuities
in the function gradient in contrast to
the `.SymmetricalLogScale` ("symlog") scale.
Specifically, the transformation of an axis coordinate :math:`a` is
:math:`a \rightarrow a_0 \sinh^{-1} (a / a_0)` where :math:`a_0`
is the effective width of the linear region of the transformation.
In that region, the transformation is
:math:`a \rightarrow a + \mathcal{O}(a^3)`.
For large values of :math:`a` the transformation behaves as
:math:`a \rightarrow a_0 \, \mathrm{sgn}(a) \ln |a| + \mathcal{O}(1)`.
.. note::
This API is provisional and may be revised in the future
based on early user feedback.
Úasinh)rx)rxé)rxé)rxr×é)r×é)éi)ér×ryé@iryÚauto)rlrc óÒt||«t|«|_t |«|_|dk(r+|j j|j
«|_y||_y)a 
Parameters
----------
linear_width : float, default: 1
The scale parameter (elsewhere referred to as :math:`a_0`)
defining the extent of the quasi-linear region,
and the coordinate values beyond which the transformation
becomes asymptotically logarithmic.
base : int, default: 10
The number base used for rounding tick locations
on a logarithmic scale. If this is less than one,
then rounding is to the nearest integer multiple
of powers of ten.
subs : sequence of int
Multiples of the number base used for minor ticks.
If set to 'auto', this will use built-in defaults,
e.g. (2, 5) for base=10.
N) rErr]ÚintÚ_baseÚauto_tick_multipliersrÚ_subs)rrrlrÚkwargsrLs €rrzAsinhScale.__init__&sSø€ô( јÔÜӌܘ“YˆŒ
Ø 6Š>Ø×3×7¸¿
¹
ÓCˆDˆDJrcó.|jjSrN)r]r s rr“zAsinhScale.<lambda>Bs¨¯©×)EÑ)E€rcó|jSrNrar s rr!zAsinhScale.get_transformDs ØÐrcóX|jt|j|j¬«t|j|j|j¬«t «¬«|jdkDr%|j
t|j««y|j
d«y)N)rl)rlr)Ú
major_locatorÚ
minor_locatorÚminor_formatterrCz{x:.3g})Úsetrrr8rrs rr#z.AsinhScale.set_default_locators_and_formattersGsØ œ|¨D×,=Ñ,=Ø15·±ô+¨D×,=Ñ,=Ø15·±Ø15·±ô"/£ð ô :‰:˜Š>Ø × $Ô%<¸T¿Z¹ZÓ%HÕ × $  /r) r*r+r,r-r@rrr!r#rWrXs@rsWø„ñð0 €Dð Ø Ø Ø Ø Ø Ø Øñ Ðð.1ؘvöñ8ÑF€Lòö
0rcó:eZdZdxZZdˆfd„ ZdZdZdZˆxZ S)ÚLogitTransformrCcó|t|«tjddg|¬«||_dddœ||_y)NrirhrjTFrg)rErrÚ
check_in_listÚ _nonpositivern©rrkrLs €rrzLogitTransform.__init__Ws<ø€Ü
ÑÔÜ ×јF FÐÕ'ˆÔØ"¨EÑ2°;Ñ?ˆ
rcóÌtjdd¬«5tj|d|z
z «}ddd«|jrd|dk<d|d|k<S#1swYŒ'xYw)z,logit transform (base 10), masked or clippedrtrurCNrzr)r{r|r€rn)rrPrs rrQz#LogitTransform.transform_non_affine]sdä
[‰[ °(Ô
—(‘(˜6 ¡ZÑ1ˆ :Š:Ø$ˆC˜!‘ Ñ Ø#ˆCV‘ Ñ Øˆ
÷  2ús ˜AÁA#có,t|j«SrN)ÚLogisticTransformrðr s rrSzLogitTransform.invertedfsÜ  ×!2Ñ!2Ó3rcóLt|«jd|jdS©(r‰©rqr*r s rrrzLogitTransform.__str__ió'Üt“*×& ×(9Ñ(9Ð'<¸>r©ri©
r*r+r,rUrVrrQrSrrrWrXs@rTs"ø„Ø Ð €Jõ@ò ò?rcó:eZdZdxZZdˆfd„ ZdZdZdZˆxZ S)rCcó0t|«||_yrN)rErs €rrzLogisticTransform.__init__psø€Ü
ÑÔØ'ˆÕrcóddd| zzz S)zlogistic transform (base 10)r¦rCryrrOs rrQz&LogisticTransform.transform_non_affinetsàa˜" ˜w™-Ñ(rcó,t|j«SrN)r s rrSzLogisticTransform.invertedxrcóLt|«jd|jdSr s rrrzLogisticTransform.__str__{rrXs@rms!ø„Ø Ð €Jõ?rcó6eZdZdZdZd dddœdZdZdZd „Zy
) Ú
LogitScalezÜ
Logit scale for data between zero and one, both excluded.
This scale is similar to a log scale close to zero and to one, and almost
linear around 0.5. It maps the interval ]0, 1[ onto ]-infty, +infty[.
Úlogitz \frac{1}{2}F©Úone_halfÚ use_overlinecó@t|«|_||_||_y)a…
Parameters