numz 0.0.3 β†’ 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.
Files changed (91) hide show
  1. package/docs/.vscode/extensions.json +4 -0
  2. package/docs/.vscode/launch.json +11 -0
  3. package/docs/README.md +49 -0
  4. package/docs/astro.config.mjs +64 -0
  5. package/docs/package-lock.json +7592 -0
  6. package/docs/package.json +19 -0
  7. package/docs/public/favicon.svg +1 -0
  8. package/docs/src/assets/houston.webp +0 -0
  9. package/docs/src/content/docs/about.md +11 -0
  10. package/docs/src/content/docs/guides/example.md +11 -0
  11. package/docs/src/content/docs/index.mdx +40 -0
  12. package/docs/src/content/docs/philosophy.md +15 -0
  13. package/docs/src/content/docs/reference/complex/complex.mdx +66 -0
  14. package/docs/src/content/docs/reference/functions/arithmetic.md +14 -0
  15. package/docs/src/content/docs/reference/functions/mapfun.md +81 -0
  16. package/docs/src/content/docs/reference/functions/ufunc.md +41 -0
  17. package/docs/src/content/docs/reference/functions/utils.md +16 -0
  18. package/docs/src/content/docs/reference/matrix/matrix.mdx +97 -0
  19. package/docs/src/content/docs/reference/signal/functions/periodic/pulse-train.md +6 -0
  20. package/docs/src/content/docs/reference/signal/functions/periodic/pwm.md +6 -0
  21. package/docs/src/content/docs/reference/signal/functions/periodic/sawtooth-train.md +6 -0
  22. package/docs/src/content/docs/reference/signal/functions/periodic/sinusoid.md +6 -0
  23. package/docs/src/content/docs/reference/signal/functions/periodic/square.md +6 -0
  24. package/docs/src/content/docs/reference/signal/functions/periodic/triangle.md +6 -0
  25. package/docs/src/content/docs/reference/signal/functions/pulse/dirac.md +12 -0
  26. package/docs/src/content/docs/reference/signal/functions/pulse/noise.md +12 -0
  27. package/docs/src/content/docs/reference/signal/functions/pulse/rampe.md +12 -0
  28. package/docs/src/content/docs/reference/signal/functions/pulse/rect.md +12 -0
  29. package/docs/src/content/docs/reference/signal/functions/pulse/signum.md +12 -0
  30. package/docs/src/content/docs/reference/signal/functions/pulse/sinc.md +12 -0
  31. package/docs/src/content/docs/reference/signal/functions/pulse/trapezoid.md +12 -0
  32. package/docs/src/content/docs/reference/signal/functions/pulse/tri.md +12 -0
  33. package/docs/src/content/docs/reference/signal/functions/sequences/arange.md +21 -0
  34. package/docs/src/content/docs/reference/signal/functions/sequences/geomspace.md +21 -0
  35. package/docs/src/content/docs/reference/signal/functions/sequences/linspace.md +16 -0
  36. package/docs/src/content/docs/reference/signal/functions/sequences/logspace.md +20 -0
  37. package/docs/src/content/docs/reference/signal/functions/sequences/nums.md +17 -0
  38. package/docs/src/content/docs/reference/signal/functions/sequences/ones.md +19 -0
  39. package/docs/src/content/docs/reference/signal/functions/sequences/zeros.md +20 -0
  40. package/docs/src/content/docs/reference/stats/accum/accum-max.md +4 -0
  41. package/docs/src/content/docs/reference/stats/accum/accum-min.md +4 -0
  42. package/docs/src/content/docs/reference/stats/accum/accum-prod.md +4 -0
  43. package/docs/src/content/docs/reference/stats/accum/accum-sum.md +4 -0
  44. package/docs/src/content/docs/reference/stats/averages/contraharmonic-mean.md +4 -0
  45. package/docs/src/content/docs/reference/stats/averages/geo_mean.md +6 -0
  46. package/docs/src/content/docs/reference/stats/averages/harmonic_mean.md +4 -0
  47. package/docs/src/content/docs/reference/stats/averages/iq-mean.md +4 -0
  48. package/docs/src/content/docs/reference/stats/averages/mean.md +6 -0
  49. package/docs/src/content/docs/reference/stats/averages/midhinge.md +4 -0
  50. package/docs/src/content/docs/reference/stats/averages/midrange.md +4 -0
  51. package/docs/src/content/docs/reference/stats/averages/power_mean.md +4 -0
  52. package/docs/src/content/docs/reference/stats/averages/rms.md +12 -0
  53. package/docs/src/content/docs/reference/stats/averages/trimmed_mean.md +4 -0
  54. package/docs/src/content/docs/reference/stats/averages/weighted_mean.md +4 -0
  55. package/docs/src/content/docs/reference/stats/averages/winsorized_mean.md +4 -0
  56. package/docs/src/content.config.ts +7 -0
  57. package/docs/src/pages/a.astro +0 -0
  58. package/docs/src/styles/custom.css +21 -0
  59. package/docs/tsconfig.json +5 -0
  60. package/package.json +2 -2
  61. package/src/calculus/derivative/index.js +16 -0
  62. package/src/calculus/index.js +22 -0
  63. package/src/calculus/integral/index.js +21 -0
  64. package/src/discret/bitwise/index.js +34 -0
  65. package/src/discret/combination/index.js +86 -0
  66. package/src/discret/index-dep.js +110 -0
  67. package/src/discret/index.js +4 -0
  68. package/src/discret/permutation/index.js +89 -0
  69. package/src/discret/sequences/index.js +30 -0
  70. package/src/index.js +6 -1
  71. package/src/signal/conv/conv.js +43 -0
  72. package/src/signal/conv/conv2.js +71 -0
  73. package/src/signal/conv/index.js +2 -0
  74. package/src/signal/fft/fft.js +47 -0
  75. package/src/signal/fft/ifft.js +16 -0
  76. package/src/signal/fft/index.js +2 -52
  77. package/src/signal/fft/utils/index.js +1 -19
  78. package/src/signal/functions/index.js +1 -1
  79. package/src/signal/functions/sequence/index.js +13 -3
  80. package/src/signal/index.js +1 -1
  81. package/src/stats/average/index.js +2 -2
  82. package/src/stats/distributions/continuos/index.js +35 -0
  83. package/src/stats/distributions/discret/index.js +45 -0
  84. package/src/stats/distributions/index.js +3 -0
  85. package/src/stats/distributions/multivar/index.js +40 -0
  86. package/src/stats/index.js +2 -1
  87. package/src/ufunc/index.js +1 -0
  88. package/test/index.js +39 -0
  89. package/test/index.py +14 -0
  90. package/src/signal/fft/fft1d/index.js +0 -18
  91. package/src/signal/fft/fftnd/index.js +0 -27
@@ -0,0 +1,4 @@
1
+ {
2
+ "recommendations": ["astro-build.astro-vscode"],
3
+ "unwantedRecommendations": []
4
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "command": "./node_modules/.bin/astro dev",
6
+ "name": "Development server",
7
+ "request": "launch",
8
+ "type": "node-terminal"
9
+ }
10
+ ]
11
+ }
package/docs/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Starlight Starter Kit: Basics
2
+
3
+ [![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](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
+ });