MCPcopy Index your code
hub / github.com/stumpy-dev/stumpy / _inverse_norm

Function _inverse_norm

stumpy/mstump.py:246–262  ·  view source on GitHub ↗

Generate bin edges from an inverse normal distribution This distribution is best suited for z-normalized time series data Parameters ---------- n_bit : int, default 8 The number of bits to be used in generating the inverse normal distribution Returns -------

(n_bit=8)

Source from the content-addressed store, hash-verified

244
245@lru_cache()
246def _inverse_norm(n_bit=8): # pragma: no cover
247 """
248 Generate bin edges from an inverse normal distribution
249
250 This distribution is best suited for z-normalized time series data
251
252 Parameters
253 ----------
254 n_bit : int, default 8
255 The number of bits to be used in generating the inverse normal distribution
256
257 Returns
258 -------
259 out : numpy.ndarray
260 Array of bin edges that can be used for data discretization
261 """
262 return norm.ppf(np.arange(1, (2**n_bit)) / (2**n_bit))
263
264
265def _discretize(a, bins, right=True): # pragma: no cover

Callers 2

subspaceFunction · 0.85
mdlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected