1 from typing import TypeVar, Iterable, Sequence, SupportsIndex, overload
3 _T = TypeVar("_T", int, float)
6 class memoryview(Iterable[_T]): # built in cython
7 def __len__(self) -> int: ...
8 def is_c_contig(self) -> bool: ...
9 def is_f_contig(self) -> bool: ...
10 def copy(self) -> memoryview[_T]: ...
11 def copy_fortran(self) -> memoryview[_T]: ...
13 def __getitem__(self, key: SupportsIndex, /) -> _T: ...
15 def __getitem__(self, key: slice, /) -> array[_T]: ...
17 def __setitem__(self, key: SupportsIndex, value: _T, /) -> None: ...
19 def __setitem__(self, key: slice, value: array[_T], /) -> None: ...
20 def __delitem__(self, key: SupportsIndex | slice, /) -> None: ...
22 def T(self) -> memoryview[_T]: ...
24 def base(self) -> array[_T]: ...
26 def itemsize(self) -> int: ...
28 def nbytes(self) -> int: ...
30 def ndim(self) -> int: ...
32 def shape(self) -> tuple[int]: ...
34 def size(self) -> int: ...
36 def strides(self) -> tuple[int]: ...
38 def suboffsets(self) -> tuple[int]: ...
40 class array(Sequence[_T]): # built in cython
41 def __len__(self) -> int: ...
42 def is_c_contig(self) -> bool: ...
43 def is_f_contig(self) -> bool: ...
44 def copy(self) -> memoryview[_T]: ...
45 def copy_fortran(self) -> memoryview[_T]: ...
47 def __getitem__(self, key: SupportsIndex, /) -> _T: ...
49 def __getitem__(self, key: slice, /) -> array[_T]: ...
51 def __setitem__(self, key: SupportsIndex, value: _T, /) -> None: ...
53 def __setitem__(self, key: slice, value: array[_T], /) -> None: ...
54 def __delitem__(self, key: SupportsIndex | slice, /) -> None: ...
56 def memview(self) -> memoryview[_T]: ...
58 def T(self) -> memoryview[_T]: ...
60 def base(self) -> array[_T]: ...
62 def itemsize(self) -> int: ...
64 def nbytes(self) -> int: ...
66 def ndim(self) -> int: ...
68 def shape(self) -> tuple[int]: ...
70 def size(self) -> int: ...
72 def strides(self) -> tuple[int]: ...
74 def suboffsets(self) -> tuple[int]: ...
76 def isqrt(x: int) -> int: ...
78 def new_u32(x: Iterable[int]) -> array[int]: ...
80 def new_u32(x: int) -> array[int]: ...
82 def new_u64(x: Iterable[int]) -> array[int]: ...
84 def new_u64(x: int) -> array[int]: ...
86 def new_f32(x: Iterable[float]) -> array[float]: ...
88 def new_f32(x: int) -> array[float]: ...
90 def new_f64(x: Iterable[float]) -> array[float]: ...
92 def new_f64(x: int) -> array[float]: ...
94 def new_float(x: Iterable[float]) -> array[float]: ...
96 def new_float(x: int) -> array[float]: ...
98 def sqrt_u32(x: Iterable[int]) -> array[int]: ...
100 def sqrt_u32(x: int) -> int: ...
102 def sqrt_u64(x: Iterable[int]) -> array[int]: ...
104 def sqrt_u64(x: int) -> int: ...
106 def rsqrt_f32(x: Iterable[float]) -> array[float]: ...
108 def rsqrt_f32(x: float) -> float: ...
110 def rsqrt_f64(x: Iterable[float]) -> array[float]: ...
112 def rsqrt_f64(x: float) -> float: ...
113 def float_sum(x: Iterable[float]) -> float: ...
114 def float_sum1(x: Iterable[float]) -> float: ...
115 def float_sum2(x: Iterable[float]) -> float: ...
116 def float_mean(x: Iterable[float]) -> float: ...
117 def hash_bkdr(str: bytes | str, val: int = 0) -> int: ...
118 def hash_sdbm(str: bytes | str, val: int = 0) -> int: ...
121 def __init__(self, poly: int, reversed=False) -> None: ...
122 def gen(self, poly: int, reversed=False) -> crc8: ...
123 def __call__(self, block: bytes, value=0) -> int: ...
124 def pack(self, block: bytes, value=0) -> bytes: ...
126 def table(self) -> array[int]: ...
129 def __init__(self, poly: int, reversed=False) -> None: ...
130 def gen(self, poly: int, reversed=False) -> crc16: ...
131 def __call__(self, block: bytes, value=0) -> int: ...
132 def pack(self, block: bytes, value=0) -> bytes: ...
134 def table(self) -> array[int]: ...
137 def __init__(self, poly: int, reversed=False) -> None: ...
138 def gen(self, poly: int, reversed=False) -> crc32: ...
139 def __call__(self, block: bytes, value=0) -> int: ...
140 def pack(self, block: bytes, value=0) -> bytes: ...
142 def table(self) -> array[int]: ...
145 def __init__(self, poly: int, reversed=False) -> None: ...
146 def gen(self, poly: int, reversed=False) -> crc64: ...
147 def __call__(self, block: bytes, value=0) -> int: ...
148 def pack(self, block: bytes, value=0) -> bytes: ...
150 def table(self) -> array[int]: ...
153 def __init__(self, fc: float, ts: float) -> None: ...
154 def gen(self, fc: float, ts: float) -> hpf: ...
155 def __call__(self, x: float) -> float: ...
156 def zero(self) -> hpf: ...
158 def alpha(self) -> float: ...
160 def alpha(self, x: float) -> None: ...
162 def output(self) -> float: ...
164 def input(self) -> float: ...
167 def __init__(self, fc: float, ts: float) -> None: ...
168 def gen(self, fc: float, ts: float) -> lpf: ...
169 def __call__(self, x: float) -> float: ...
170 def zero(self) -> lpf: ...
172 def alpha(self) -> float: ...
174 def alpha(self, x: float) -> None: ...
176 def output(self) -> float: ...
195 def mf(e: int | float, x: Iterable[float], a: Iterable[float]) -> array[float]: ...
198 def mf(e: int | float, x: float, a: Iterable[float]) -> float: ...
201 def gauss(x: Iterable[float], sigma: float, c: float) -> array[float]: ...
204 def gauss(x: float, sigma: float, c: float) -> float: ...
208 x: Iterable[float], sigma1: float, c1: float, sigma2: float, c2: float
209 ) -> array[float]: ...
212 def gauss2(x: float, sigma1: float, c1: float, sigma2: float, c2: float) -> float: ...
215 def gbell(x: Iterable[float], a: float, b: float, c: float) -> array[float]: ...
218 def gbell(x: float, a: float, b: float, c: float) -> float: ...
221 def sig(x: Iterable[float], a: float, c: float) -> array[float]: ...
224 def sig(x: float, a: float, c: float) -> float: ...
227 def dsig(x: Iterable[float], a1: float, c1: float, a2: float, c2: float) -> array[float]: ...
230 def dsig(x: float, a1: float, c1: float, a2: float, c2: float) -> float: ...
233 def psig(x: Iterable[float], a1: float, c1: float, a2: float, c2: float) -> array[float]: ...
236 def psig(x: float, a1: float, c1: float, a2: float, c2: float) -> float: ...
239 def trap(x: Iterable[float], a: float, b: float, c: float, d: float) -> array[float]: ...
242 def trap(x: float, a: float, b: float, c: float, d: float) -> float: ...
245 def tri(x: Iterable[float], a: float, b: float, c: float) -> array[float]: ...
248 def tri(x: float, a: float, b: float, c: float) -> float: ...
251 def lins(x: Iterable[float], a: float, b: float) -> array[float]: ...
254 def lins(x: float, a: float, b: float) -> float: ...
257 def linz(x: Iterable[float], a: float, b: float) -> array[float]: ...
260 def linz(x: float, a: float, b: float) -> float: ...
263 def s(x: Iterable[float], a: float, b: float) -> array[float]: ...
266 def s(x: float, a: float, b: float) -> float: ...
269 def z(x: Iterable[float], a: float, b: float) -> array[float]: ...
272 def z(x: float, a: float, b: float) -> float: ...
275 def pi(x: Iterable[float], a: float, b: float, c: float, d: float) -> array[float]: ...
278 def pi(x: float, a: float, b: float, c: float, d: float) -> float: ...
281 def __init__(self) -> None: ...
282 def set_kpid(self, kp: float, ki: float, kd: float) -> pid: ...
283 def run(self, set: float, fdb: float) -> float: ...
284 def pos(self, set: float, fdb: float) -> float: ...
285 def inc(self, set: float, fdb: float) -> float: ...
286 def zero(self) -> pid: ...
288 def kp(self) -> float: ...
290 def kp(self, kp: float) -> None: ...
292 def ki(self) -> float: ...
294 def ki(self, ki: float) -> None: ...
296 def kd(self) -> float: ...
298 def kd(self, kd: float) -> None: ...
300 def summax(self) -> float: ...
302 def summax(self, summax: float) -> None: ...
304 def summin(self) -> float: ...
306 def summin(self, summin: float) -> None: ...
308 def sum(self) -> float: ...
310 def outmax(self) -> float: ...
312 def outmax(self, outmax: float) -> None: ...
314 def outmin(self) -> float: ...
316 def outmin(self, outmin: float) -> None: ...
318 def out(self) -> float: ...
320 def fdb(self) -> float: ...
322 def err(self) -> float: ...
332 def __init__(self) -> None: ...
333 def set_opr(self, opr: int) -> pid_fuzzy: ...
334 def set_nfuzz(self, num: int) -> pid_fuzzy: ...
337 me: Iterable[Iterable[float]],
338 mec: Iterable[Iterable[float]],
339 mkp: Iterable[Iterable[float]],
340 mki: Iterable[Iterable[float]],
341 mkd: Iterable[Iterable[float]],
343 def set_kpid(self, kp: float, ki: float, kd: float) -> pid_fuzzy: ...
344 def run(self, set: float, fdb: float) -> float: ...
345 def pos(self, set: float, fdb: float) -> float: ...
346 def inc(self, set: float, fdb: float) -> float: ...
347 def zero(self) -> pid_fuzzy: ...
349 def me(self) -> array[float]: ...
351 def mec(self) -> array[float]: ...
353 def mkp(self) -> array[float]: ...
355 def mki(self) -> array[float]: ...
357 def mkd(self) -> array[float]: ...
359 def kp(self) -> float: ...
361 def kp(self, kp: float) -> None: ...
363 def ki(self) -> float: ...
365 def ki(self, ki: float) -> None: ...
367 def kd(self) -> float: ...
369 def kd(self, kd: float) -> None: ...
371 def summax(self) -> float: ...
373 def summax(self, summax: float) -> None: ...
375 def summin(self) -> float: ...
377 def summin(self, summin: float) -> None: ...
379 def sum(self) -> float: ...
381 def outmax(self) -> float: ...
383 def outmax(self, outmax: float) -> None: ...
385 def outmin(self) -> float: ...
387 def outmin(self, outmin: float) -> None: ...
389 def out(self) -> float: ...
391 def fdb(self) -> float: ...
393 def err(self) -> float: ...
395 def nrule(self) -> int: ...
397 def nfuzz(self) -> int: ...
399 def nfuzz(self, nfuzz: int) -> None: ...
402 def __init__(self) -> None: ...
403 def set_kpid(self, k: float, kp: float, ki: float, kd: float) -> pid_neuro: ...
404 def set_wpid(self, wp: float, wi: float, wd: float) -> pid_neuro: ...
405 def run(self, set: float, fdb: float) -> float: ...
406 def inc(self, set: float, fdb: float) -> float: ...
407 def zero(self) -> pid_neuro: ...
409 def k(self) -> float: ...
411 def k(self, k: float) -> None: ...
413 def kp(self) -> float: ...
415 def kp(self, kp: float) -> None: ...
417 def ki(self) -> float: ...
419 def ki(self, ki: float) -> None: ...
421 def kd(self) -> float: ...
423 def kd(self, kd: float) -> None: ...
425 def wp(self) -> float: ...
427 def wp(self, wp: float) -> None: ...
429 def wi(self) -> float: ...
431 def wi(self, wi: float) -> None: ...
433 def wd(self) -> float: ...
435 def wd(self, wd: float) -> None: ...
437 def outmax(self) -> float: ...
439 def outmax(self, outmax: float) -> None: ...
441 def outmin(self) -> float: ...
443 def outmin(self, outmin: float) -> None: ...
445 def out(self) -> float: ...
447 def fdb(self) -> float: ...
449 def err(self) -> float: ...
451 def ec(self) -> float: ...
454 def poly_eval(x: Iterable[float], a: Iterable[float]) -> array[float]: ...
456 def poly_eval(x: float, a: Iterable[float]) -> float: ...
458 def poly_evar(x: Iterable[float], a: Iterable[float]) -> array[float]: ...
460 def poly_evar(x: float, a: Iterable[float]) -> float: ...
462 class regress_linear:
464 def __init__(self, coef: float, bias: float = 0): ...
466 def __init__(self, coef: Iterable[float], bias: float = 0): ...
467 def eval(self, x: Iterable[float]) -> float | array[float]: ...
468 def err(self, x: Iterable[float], y: Iterable[float]) -> array[float]: ...
469 def gd(self, input: Iterable[float], error: float, alpha: float) -> regress_linear: ...
470 def sgd(self, x: Iterable[float], y: Iterable[float], alpha: float) -> regress_linear: ...
471 def bgd(self, x: Iterable[float], y: Iterable[float], alpha: float) -> regress_linear: ...
483 def zero(self) -> regress_linear: ...
485 def coef(self) -> array[float]: ...
488 def coef(self, coef: float) -> None: ...
491 def coef(self, coef: Iterable[float]) -> None: ...
493 def bias(self) -> float: ...
495 def bias(self, bias: float) -> None: ...
497 class regress_simple:
498 def __init__(self, coef: float = 1, bias: float = 0): ...
500 def eval(self, x: Iterable[float]) -> array[float]: ...
502 def eval(self, x: float) -> float: ...
504 def evar(self, y: Iterable[float]) -> array[float]: ...
506 def evar(self, y: float) -> float: ...
508 self, x: Iterable[float], y: Iterable[float], x_mean: float, y_mean: float
509 ) -> regress_simple: ...
510 def olsx(self, x: Iterable[float], y: Iterable[float], x_mean: float) -> regress_simple: ...
511 def olsy(self, x: Iterable[float], y: Iterable[float], y_mean: float) -> regress_simple: ...
512 def ols(self, x: Iterable[float], y: Iterable[float]) -> regress_simple: ...
513 def zero(self) -> regress_simple: ...
515 def coef(self) -> float: ...
517 def coef(self, coef: float) -> None: ...
519 def bias(self) -> float: ...
521 def bias(self, bias: float) -> None: ...
524 def __init__(self, num: Iterable[float], den: Iterable[float]) -> None: ...
525 def __call__(self, x: float) -> float: ...
527 def input(self) -> array[float]: ...
529 def num(self) -> array[float]: ...
531 def num(self, num: Iterable[float]) -> None: ...
533 def output(self) -> array[float]: ...
535 def den(self) -> array[float]: ...
537 def den(self, den: Iterable[float]) -> None: ...
538 def zero(self) -> tf: ...
552 def pos(self, x: Iterable[float]) -> array[float]: ...
554 def pos(self, x: float) -> float: ...
556 def vel(self, x: Iterable[float]) -> array[float]: ...
558 def vel(self, x: float) -> float: ...
560 def acc(self, x: Iterable[float]) -> array[float]: ...
562 def acc(self, x: float) -> float: ...
564 def jer(self, x: Iterable[float]) -> array[float]: ...
566 def jer(self, x: float) -> float: ...
568 def t(self) -> float: ...
570 def tv(self) -> float: ...
572 def ta(self) -> float: ...
574 def td(self) -> float: ...
576 def taj(self) -> float: ...
578 def tdj(self) -> float: ...
580 def p0(self) -> float: ...
582 def p1(self) -> float: ...
584 def v0(self) -> float: ...
586 def v1(self) -> float: ...
588 def vm(self) -> float: ...
590 def jm(self) -> float: ...
592 def am(self) -> float: ...
594 def dm(self) -> float: ...
614 def pos(self, x: Iterable[float]) -> array[float]: ...
616 def pos(self, x: float) -> float: ...
618 def vel(self, x: Iterable[float]) -> array[float]: ...
620 def vel(self, x: float) -> float: ...
622 def acc(self, x: Iterable[float]) -> array[float]: ...
624 def acc(self, x: float) -> float: ...
626 def p(self) -> array[float]: ...
628 def v(self) -> array[float]: ...
630 def a(self) -> array[float]: ...
654 def pos(self, x: Iterable[float]) -> array[float]: ...
656 def pos(self, x: float) -> float: ...
658 def vel(self, x: Iterable[float]) -> array[float]: ...
660 def vel(self, x: float) -> float: ...
662 def acc(self, x: Iterable[float]) -> array[float]: ...
664 def acc(self, x: float) -> float: ...
666 def p(self) -> array[float]: ...
668 def v(self) -> array[float]: ...
670 def a(self) -> array[float]: ...
698 def pos(self, x: Iterable[float]) -> array[float]: ...
700 def pos(self, x: float) -> float: ...
702 def vel(self, x: Iterable[float]) -> array[float]: ...
704 def vel(self, x: float) -> float: ...
706 def acc(self, x: Iterable[float]) -> array[float]: ...
708 def acc(self, x: float) -> float: ...
710 def jer(self, x: Iterable[float]) -> array[float]: ...
712 def jer(self, x: float) -> float: ...
714 def p(self) -> array[float]: ...
716 def v(self) -> array[float]: ...
718 def a(self) -> array[float]: ...
720 def j(self) -> array[float]: ...
734 def pos(self, x: Iterable[float]) -> array[float]: ...
736 def pos(self, x: float) -> float: ...
738 def vel(self, x: Iterable[float]) -> array[float]: ...
740 def vel(self, x: float) -> float: ...
742 def acc(self, x: Iterable[float]) -> array[float]: ...
744 def acc(self, x: float) -> float: ...
746 def t(self) -> float: ...
748 def p0(self) -> float: ...
750 def p1(self) -> float: ...
752 def v0(self) -> float: ...
754 def v1(self) -> float: ...
756 def vc(self) -> float: ...
758 def ta(self) -> float: ...
760 def td(self) -> float: ...
762 def pa(self) -> float: ...
764 def pd(self) -> float: ...
766 def ac(self) -> float: ...
768 def de(self) -> float: ...
772 def check(major: int = 0, minor: int = 0, patch: int = 0) -> int: ...
773 def __init__(self, major: int = 0, minor: int = 0, third: int = 0, extra: int = 0) -> None: ...
774 def __lt__(self, that: version) -> bool: ...
775 def __gt__(self, that: version) -> bool: ...
776 def __le__(self, that: version) -> bool: ...
777 def __ge__(self, that: version) -> bool: ...
778 def __eq__(self, that: version) -> bool: ...
779 def __ne__(self, that: version) -> bool: ...
780 def parse(self, ver: bytes | str) -> version: ...
781 def cmp(self, that: version) -> int: ...
783 def major(self) -> int: ...
785 def major(self, major: int) -> None: ...
787 def minor(self) -> int: ...
789 def minor(self, minor: int) -> None: ...
791 def third(self) -> int: ...
793 def third(self, third: int) -> None: ...
795 def extra(self) -> int: ...
797 def extra(self, extra: int) -> None: ...
799 def alpha(self) -> bytes: ...
801 def alpha(self, alpha: bytes | str) -> None: ...