numz 0.1.0 β 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/.vscode/extensions.json +4 -0
- package/docs/.vscode/launch.json +11 -0
- package/docs/README.md +49 -0
- package/docs/astro.config.mjs +64 -0
- package/docs/package-lock.json +7592 -0
- package/docs/package.json +19 -0
- package/docs/public/favicon.svg +1 -0
- package/docs/src/assets/houston.webp +0 -0
- package/docs/src/content/docs/about.md +11 -0
- package/docs/src/content/docs/guides/example.md +11 -0
- package/docs/src/content/docs/index.mdx +40 -0
- package/docs/src/content/docs/philosophy.md +15 -0
- package/docs/src/content/docs/reference/complex/complex.mdx +66 -0
- package/docs/src/content/docs/reference/functions/arithmetic.md +14 -0
- package/docs/src/content/docs/reference/functions/mapfun.md +81 -0
- package/docs/src/content/docs/reference/functions/ufunc.md +41 -0
- package/docs/src/content/docs/reference/functions/utils.md +16 -0
- package/docs/src/content/docs/reference/matrix/matrix.mdx +97 -0
- package/docs/src/content/docs/reference/signal/functions/periodic/pulse-train.md +6 -0
- package/docs/src/content/docs/reference/signal/functions/periodic/pwm.md +6 -0
- package/docs/src/content/docs/reference/signal/functions/periodic/sawtooth-train.md +6 -0
- package/docs/src/content/docs/reference/signal/functions/periodic/sinusoid.md +6 -0
- package/docs/src/content/docs/reference/signal/functions/periodic/square.md +6 -0
- package/docs/src/content/docs/reference/signal/functions/periodic/triangle.md +6 -0
- package/docs/src/content/docs/reference/signal/functions/pulse/dirac.md +12 -0
- package/docs/src/content/docs/reference/signal/functions/pulse/noise.md +12 -0
- package/docs/src/content/docs/reference/signal/functions/pulse/rampe.md +12 -0
- package/docs/src/content/docs/reference/signal/functions/pulse/rect.md +12 -0
- package/docs/src/content/docs/reference/signal/functions/pulse/signum.md +12 -0
- package/docs/src/content/docs/reference/signal/functions/pulse/sinc.md +12 -0
- package/docs/src/content/docs/reference/signal/functions/pulse/trapezoid.md +12 -0
- package/docs/src/content/docs/reference/signal/functions/pulse/tri.md +12 -0
- package/docs/src/content/docs/reference/signal/functions/sequences/arange.md +21 -0
- package/docs/src/content/docs/reference/signal/functions/sequences/geomspace.md +21 -0
- package/docs/src/content/docs/reference/signal/functions/sequences/linspace.md +16 -0
- package/docs/src/content/docs/reference/signal/functions/sequences/logspace.md +20 -0
- package/docs/src/content/docs/reference/signal/functions/sequences/nums.md +17 -0
- package/docs/src/content/docs/reference/signal/functions/sequences/ones.md +19 -0
- package/docs/src/content/docs/reference/signal/functions/sequences/zeros.md +20 -0
- package/docs/src/content/docs/reference/stats/accum/accum-max.md +4 -0
- package/docs/src/content/docs/reference/stats/accum/accum-min.md +4 -0
- package/docs/src/content/docs/reference/stats/accum/accum-prod.md +4 -0
- package/docs/src/content/docs/reference/stats/accum/accum-sum.md +4 -0
- package/docs/src/content/docs/reference/stats/averages/contraharmonic-mean.md +4 -0
- package/docs/src/content/docs/reference/stats/averages/geo_mean.md +6 -0
- package/docs/src/content/docs/reference/stats/averages/harmonic_mean.md +4 -0
- package/docs/src/content/docs/reference/stats/averages/iq-mean.md +4 -0
- package/docs/src/content/docs/reference/stats/averages/mean.md +6 -0
- package/docs/src/content/docs/reference/stats/averages/midhinge.md +4 -0
- package/docs/src/content/docs/reference/stats/averages/midrange.md +4 -0
- package/docs/src/content/docs/reference/stats/averages/power_mean.md +4 -0
- package/docs/src/content/docs/reference/stats/averages/rms.md +12 -0
- package/docs/src/content/docs/reference/stats/averages/trimmed_mean.md +4 -0
- package/docs/src/content/docs/reference/stats/averages/weighted_mean.md +4 -0
- package/docs/src/content/docs/reference/stats/averages/winsorized_mean.md +4 -0
- package/docs/src/content.config.ts +7 -0
- package/docs/src/pages/a.astro +0 -0
- package/docs/src/styles/custom.css +21 -0
- package/docs/tsconfig.json +5 -0
- package/package.json +2 -2
- package/src/signal/conv/conv.js +43 -0
- package/src/signal/conv/conv2.js +71 -0
- package/src/signal/conv/index.js +2 -0
- package/src/signal/fft/fft.js +47 -0
- package/src/signal/fft/ifft.js +16 -0
- package/src/signal/fft/index.js +2 -52
- package/src/signal/fft/utils/index.js +1 -19
- package/src/signal/functions/index.js +1 -1
- package/src/signal/functions/sequence/index.js +13 -3
- package/src/signal/index.js +1 -1
- package/src/stats/average/index.js +2 -2
- package/test/index.js +39 -0
- package/test/index.py +14 -0
- package/src/signal/fft/fft1d/index.js +0 -18
- package/src/signal/fft/fftnd/index.js +0 -27
package/docs/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Starlight Starter Kit: Basics
|
|
2
|
+
|
|
3
|
+
[](https://starlight.astro.build)
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
npm create astro@latest -- --template starlight
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
> π§βπ **Seasoned astronaut?** Delete this file. Have fun!
|
|
10
|
+
|
|
11
|
+
## π Project Structure
|
|
12
|
+
|
|
13
|
+
Inside of your Astro + Starlight project, you'll see the following folders and files:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
.
|
|
17
|
+
βββ public/
|
|
18
|
+
βββ src/
|
|
19
|
+
β βββ assets/
|
|
20
|
+
β βββ content/
|
|
21
|
+
β β βββ docs/
|
|
22
|
+
β βββ content.config.ts
|
|
23
|
+
βββ astro.config.mjs
|
|
24
|
+
βββ package.json
|
|
25
|
+
βββ tsconfig.json
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Starlight looks for `.md` or `.mdx` files in the `src/content/docs/` directory. Each file is exposed as a route based on its file name.
|
|
29
|
+
|
|
30
|
+
Images can be added to `src/assets/` and embedded in Markdown with a relative link.
|
|
31
|
+
|
|
32
|
+
Static assets, like favicons, can be placed in the `public/` directory.
|
|
33
|
+
|
|
34
|
+
## π§ Commands
|
|
35
|
+
|
|
36
|
+
All commands are run from the root of the project, from a terminal:
|
|
37
|
+
|
|
38
|
+
| Command | Action |
|
|
39
|
+
| :------------------------ | :----------------------------------------------- |
|
|
40
|
+
| `npm install` | Installs dependencies |
|
|
41
|
+
| `npm run dev` | Starts local dev server at `localhost:4321` |
|
|
42
|
+
| `npm run build` | Build your production site to `./dist/` |
|
|
43
|
+
| `npm run preview` | Preview your build locally, before deploying |
|
|
44
|
+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
|
|
45
|
+
| `npm run astro -- --help` | Get help using the Astro CLI |
|
|
46
|
+
|
|
47
|
+
## π Want to learn more?
|
|
48
|
+
|
|
49
|
+
Check out [Starlightβs docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat).
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import { defineConfig } from 'astro/config';
|
|
3
|
+
import starlight from '@astrojs/starlight';
|
|
4
|
+
import starlightGitHubAlerts from 'starlight-github-alerts'
|
|
5
|
+
import starlightThemeObsidian from 'starlight-theme-obsidian'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const referenceModules = [
|
|
9
|
+
'functions',
|
|
10
|
+
'matrix',
|
|
11
|
+
'complex',
|
|
12
|
+
'signal',
|
|
13
|
+
'stats',
|
|
14
|
+
'calculs',
|
|
15
|
+
'discret'
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
// https://astro.build/config
|
|
19
|
+
export default defineConfig({
|
|
20
|
+
integrations: [
|
|
21
|
+
starlight({
|
|
22
|
+
title: 'NumZ',
|
|
23
|
+
plugins: [
|
|
24
|
+
starlightThemeObsidian({
|
|
25
|
+
graph: false
|
|
26
|
+
})
|
|
27
|
+
// starlightGitHubAlerts(),
|
|
28
|
+
],
|
|
29
|
+
customCss: [
|
|
30
|
+
'./src/styles/custom.css',
|
|
31
|
+
],
|
|
32
|
+
social: [
|
|
33
|
+
{
|
|
34
|
+
icon: 'github',
|
|
35
|
+
label: 'GitHub',
|
|
36
|
+
href: 'https://github.com/zakarialaoui10/numz.git'
|
|
37
|
+
}],
|
|
38
|
+
sidebar: [
|
|
39
|
+
{
|
|
40
|
+
label: 'Guides',
|
|
41
|
+
items: [
|
|
42
|
+
{ label: 'Example Guide', slug: 'guides/example' },
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label : 'philosophy',
|
|
47
|
+
slug : 'philosophy'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label : 'about',
|
|
51
|
+
slug : 'about'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label : 'reference',
|
|
55
|
+
items : referenceModules.map(label => ({
|
|
56
|
+
label,
|
|
57
|
+
collapsed: true,
|
|
58
|
+
autogenerate: { directory: `reference/${label}` },
|
|
59
|
+
})),
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
}),
|
|
63
|
+
],
|
|
64
|
+
});
|