Buckets:
MisterAI/LocalAI_Demo_backends / cpu-diffusers.upgrade-tmp /venv /lib /python3.10 /site-packages /mpmath /functions /signals.py
| from .functions import defun_wrapped | |
| def squarew(ctx, t, amplitude=1, period=1): | |
| P = period | |
| A = amplitude | |
| return A*((-1)**ctx.floor(2*t/P)) | |
| def trianglew(ctx, t, amplitude=1, period=1): | |
| A = amplitude | |
| P = period | |
| return 2*A*(0.5 - ctx.fabs(1 - 2*ctx.frac(t/P + 0.25))) | |
| def sawtoothw(ctx, t, amplitude=1, period=1): | |
| A = amplitude | |
| P = period | |
| return A*ctx.frac(t/P) | |
| def unit_triangle(ctx, t, amplitude=1): | |
| A = amplitude | |
| if t <= -1 or t >= 1: | |
| return ctx.zero | |
| return A*(-ctx.fabs(t) + 1) | |
| def sigmoid(ctx, t, amplitude=1): | |
| A = amplitude | |
| return A / (1 + ctx.exp(-t)) | |
Xet Storage Details
- Size:
- 703 Bytes
- Xet hash:
- 1993f079826bbf8fddfee93b4fc9716749dd83d63195820a74dbf17c8b6e7a96
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.