@stdlib/stats-base-snanvariancech 0.0.2 → 0.0.6

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/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2021 The Stdlib Authors.
1
+ Copyright (c) 2016-2022 The Stdlib Authors.
package/README.md CHANGED
@@ -20,7 +20,7 @@ limitations under the License.
20
20
 
21
21
  # snanvariancech
22
22
 
23
- [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
23
+ [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
24
24
 
25
25
  > Calculate the [variance][variance] of a single-precision floating-point strided array ignoring `NaN` values and using a one-pass trial mean algorithm.
26
26
 
@@ -31,7 +31,7 @@ The population [variance][variance] of a finite size population of size `N` is g
31
31
  <!-- <equation class="equation" label="eq:population_variance" align="center" raw="\sigma^2 = \frac{1}{N} \sum_{i=0}^{N-1} (x_i - \mu)^2" alt="Equation for the population variance."> -->
32
32
 
33
33
  <div class="equation" align="center" data-raw-text="\sigma^2 = \frac{1}{N} \sum_{i=0}^{N-1} (x_i - \mu)^2" data-equation="eq:population_variance">
34
- <img src="https://cdn.rawgit.com/stdlib-js/stdlib/a5d41e27716f39f3e27a103bf37fc0b97a343b83/lib/node_modules/@stdlib/stats/base/snanvariancech/docs/img/equation_population_variance.svg" alt="Equation for the population variance.">
34
+ <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@593b8d50a1058699be05a387cbf1bb752f63b581/lib/node_modules/@stdlib/stats/base/snanvariancech/docs/img/equation_population_variance.svg" alt="Equation for the population variance.">
35
35
  <br>
36
36
  </div>
37
37
 
@@ -42,7 +42,7 @@ where the population mean is given by
42
42
  <!-- <equation class="equation" label="eq:population_mean" align="center" raw="\mu = \frac{1}{N} \sum_{i=0}^{N-1} x_i" alt="Equation for the population mean."> -->
43
43
 
44
44
  <div class="equation" align="center" data-raw-text="\mu = \frac{1}{N} \sum_{i=0}^{N-1} x_i" data-equation="eq:population_mean">
45
- <img src="https://cdn.rawgit.com/stdlib-js/stdlib/a5d41e27716f39f3e27a103bf37fc0b97a343b83/lib/node_modules/@stdlib/stats/base/snanvariancech/docs/img/equation_population_mean.svg" alt="Equation for the population mean.">
45
+ <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@593b8d50a1058699be05a387cbf1bb752f63b581/lib/node_modules/@stdlib/stats/base/snanvariancech/docs/img/equation_population_mean.svg" alt="Equation for the population mean.">
46
46
  <br>
47
47
  </div>
48
48
 
@@ -53,7 +53,7 @@ Often in the analysis of data, the true population [variance][variance] is not k
53
53
  <!-- <equation class="equation" label="eq:unbiased_sample_variance" align="center" raw="s^2 = \frac{1}{n-1} \sum_{i=0}^{n-1} (x_i - \bar{x})^2" alt="Equation for computing an unbiased sample variance."> -->
54
54
 
55
55
  <div class="equation" align="center" data-raw-text="s^2 = \frac{1}{n-1} \sum_{i=0}^{n-1} (x_i - \bar{x})^2" data-equation="eq:unbiased_sample_variance">
56
- <img src="https://cdn.rawgit.com/stdlib-js/stdlib/a5d41e27716f39f3e27a103bf37fc0b97a343b83/lib/node_modules/@stdlib/stats/base/snanvariancech/docs/img/equation_unbiased_sample_variance.svg" alt="Equation for computing an unbiased sample variance.">
56
+ <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@593b8d50a1058699be05a387cbf1bb752f63b581/lib/node_modules/@stdlib/stats/base/snanvariancech/docs/img/equation_unbiased_sample_variance.svg" alt="Equation for computing an unbiased sample variance.">
57
57
  <br>
58
58
  </div>
59
59
 
@@ -64,7 +64,7 @@ where the sample mean is given by
64
64
  <!-- <equation class="equation" label="eq:sample_mean" align="center" raw="\bar{x} = \frac{1}{n} \sum_{i=0}^{n-1} x_i" alt="Equation for the sample mean."> -->
65
65
 
66
66
  <div class="equation" align="center" data-raw-text="\bar{x} = \frac{1}{n} \sum_{i=0}^{n-1} x_i" data-equation="eq:sample_mean">
67
- <img src="https://cdn.rawgit.com/stdlib-js/stdlib/a5d41e27716f39f3e27a103bf37fc0b97a343b83/lib/node_modules/@stdlib/stats/base/snanvariancech/docs/img/equation_sample_mean.svg" alt="Equation for the sample mean.">
67
+ <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@593b8d50a1058699be05a387cbf1bb752f63b581/lib/node_modules/@stdlib/stats/base/snanvariancech/docs/img/equation_sample_mean.svg" alt="Equation for the sample mean.">
68
68
  <br>
69
69
  </div>
70
70
 
@@ -234,6 +234,26 @@ console.log( v );
234
234
 
235
235
  <!-- /.references -->
236
236
 
237
+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
238
+
239
+ <section class="related">
240
+
241
+ * * *
242
+
243
+ ## See Also
244
+
245
+ - <span class="package-name">[`@stdlib/stats/base/dnanvariancech`][@stdlib/stats/base/dnanvariancech]</span><span class="delimiter">: </span><span class="description">calculate the variance of a double-precision floating-point strided array ignoring NaN values and using a one-pass trial mean algorithm.</span>
246
+ - <span class="package-name">[`@stdlib/stats/base/nanvariancech`][@stdlib/stats/base/nanvariancech]</span><span class="delimiter">: </span><span class="description">calculate the variance of a strided array ignoring NaN values and using a one-pass trial mean algorithm.</span>
247
+ - <span class="package-name">[`@stdlib/stats/base/snanstdevch`][@stdlib/stats/base/snanstdevch]</span><span class="delimiter">: </span><span class="description">calculate the standard deviation of a single-precision floating-point strided array ignoring NaN values and using a one-pass trial mean algorithm.</span>
248
+ - <span class="package-name">[`@stdlib/stats/base/snanvariance`][@stdlib/stats/base/snanvariance]</span><span class="delimiter">: </span><span class="description">calculate the variance of a single-precision floating-point strided array ignoring NaN values.</span>
249
+ - <span class="package-name">[`@stdlib/stats/base/svariancech`][@stdlib/stats/base/svariancech]</span><span class="delimiter">: </span><span class="description">calculate the variance of a single-precision floating-point strided array using a one-pass trial mean algorithm.</span>
250
+
251
+ </section>
252
+
253
+ <!-- /.related -->
254
+
255
+ <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
256
+
237
257
 
238
258
  <section class="main-repo" >
239
259
 
@@ -245,6 +265,10 @@ This package is part of [stdlib][stdlib], a standard library for JavaScript and
245
265
 
246
266
  For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].
247
267
 
268
+ #### Community
269
+
270
+ [![Chat][chat-image]][chat-url]
271
+
248
272
  ---
249
273
 
250
274
  ## License
@@ -254,7 +278,7 @@ See [LICENSE][stdlib-license].
254
278
 
255
279
  ## Copyright
256
280
 
257
- Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
281
+ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
258
282
 
259
283
  </section>
260
284
 
@@ -273,9 +297,23 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
273
297
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/stats-base-snanvariancech/main.svg
274
298
  [coverage-url]: https://codecov.io/github/stdlib-js/stats-base-snanvariancech?branch=main
275
299
 
276
- [dependencies-image]: https://img.shields.io/david/stdlib-js/stats-base-snanvariancech
300
+ <!--
301
+
302
+ [dependencies-image]: https://img.shields.io/david/stdlib-js/stats-base-snanvariancech.svg
277
303
  [dependencies-url]: https://david-dm.org/stdlib-js/stats-base-snanvariancech/main
278
304
 
305
+ -->
306
+
307
+ [umd]: https://github.com/umdjs/umd
308
+ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
309
+
310
+ [deno-url]: https://github.com/stdlib-js/stats-base-snanvariancech/tree/deno
311
+ [umd-url]: https://github.com/stdlib-js/stats-base-snanvariancech/tree/umd
312
+ [esm-url]: https://github.com/stdlib-js/stats-base-snanvariancech/tree/esm
313
+
314
+ [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
315
+ [chat-url]: https://gitter.im/stdlib-js/stdlib/
316
+
279
317
  [stdlib]: https://github.com/stdlib-js/stdlib
280
318
 
281
319
  [stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
@@ -284,7 +322,7 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
284
322
 
285
323
  [variance]: https://en.wikipedia.org/wiki/Variance
286
324
 
287
- [@stdlib/array/float32]: https://github.com/stdlib-js/stdlib
325
+ [@stdlib/array/float32]: https://www.npmjs.com/package/@stdlib/array-float32
288
326
 
289
327
  [mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
290
328
 
@@ -296,6 +334,20 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
296
334
 
297
335
  [@schubert:2018a]: https://doi.org/10.1145/3221269.3223036
298
336
 
337
+ <!-- <related-links> -->
338
+
339
+ [@stdlib/stats/base/dnanvariancech]: https://www.npmjs.com/package/@stdlib/stats-base-dnanvariancech
340
+
341
+ [@stdlib/stats/base/nanvariancech]: https://www.npmjs.com/package/@stdlib/stats-base-nanvariancech
342
+
343
+ [@stdlib/stats/base/snanstdevch]: https://www.npmjs.com/package/@stdlib/stats-base-snanstdevch
344
+
345
+ [@stdlib/stats/base/snanvariance]: https://www.npmjs.com/package/@stdlib/stats-base-snanvariance
346
+
347
+ [@stdlib/stats/base/svariancech]: https://www.npmjs.com/package/@stdlib/stats-base-svariancech
348
+
349
+ <!-- </related-links> -->
350
+
299
351
  </section>
300
352
 
301
353
  <!-- /.links -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/stats-base-snanvariancech",
3
- "version": "0.0.2",
3
+ "version": "0.0.6",
4
4
  "description": "Calculate the variance of a single-precision floating-point strided array ignoring NaN values and using a one-pass trial mean algorithm.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -15,15 +15,15 @@
15
15
  ],
16
16
  "main": "./lib",
17
17
  "browser": "./lib/main.js",
18
- "gypfile": true,
18
+ "gypfile": false,
19
19
  "directories": {
20
20
  "benchmark": "./benchmark",
21
21
  "doc": "./docs",
22
22
  "example": "./examples",
23
23
  "include": "./include",
24
24
  "lib": "./lib",
25
- "test": "./test",
26
- "src": "./src"
25
+ "src": "./src",
26
+ "test": "./test"
27
27
  },
28
28
  "types": "./docs/types",
29
29
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  "examples": "make examples",
33
33
  "benchmark": "make benchmark"
34
34
  },
35
- "homepage": "https://github.com/stdlib-js/stdlib",
35
+ "homepage": "https://stdlib.io",
36
36
  "repository": {
37
37
  "type": "git",
38
38
  "url": "git://github.com/stdlib-js/stats-base-snanvariancech.git"
package/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- # CHANGELOG
2
-
3
- > Package changelog.
4
-
5
- See [GitHub Releases](https://github.com/stdlib-js/stats-base-snanvariancech/releases) for the changelog.
package/binding.gyp DELETED
@@ -1,170 +0,0 @@
1
- # @license Apache-2.0
2
- #
3
- # Copyright (c) 2020 The Stdlib Authors.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- # A `.gyp` file for building a Node.js native add-on.
18
- #
19
- # [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
20
- # [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
21
- {
22
- # List of files to include in this file:
23
- 'includes': [
24
- './include.gypi',
25
- ],
26
-
27
- # Define variables to be used throughout the configuration for all targets:
28
- 'variables': {
29
- # Target name should match the add-on export name:
30
- 'addon_target_name%': 'addon',
31
-
32
- # Set variables based on the host OS:
33
- 'conditions': [
34
- [
35
- 'OS=="win"',
36
- {
37
- # Define the object file suffix:
38
- 'obj': 'obj',
39
- },
40
- {
41
- # Define the object file suffix:
42
- 'obj': 'o',
43
- }
44
- ], # end condition (OS=="win")
45
- ], # end conditions
46
- }, # end variables
47
-
48
- # Define compile targets:
49
- 'targets': [
50
-
51
- # Target to generate an add-on:
52
- {
53
- # The target name should match the add-on export name:
54
- 'target_name': '<(addon_target_name)',
55
-
56
- # Define dependencies:
57
- 'dependencies': [],
58
-
59
- # Define directories which contain relevant include headers:
60
- 'include_dirs': [
61
- # Local include directory:
62
- '<@(include_dirs)',
63
- ],
64
-
65
- # List of source files:
66
- 'sources': [
67
- '<@(src_files)',
68
- ],
69
-
70
- # Settings which should be applied when a target's object files are used as linker input:
71
- 'link_settings': {
72
- # Define libraries:
73
- 'libraries': [
74
- '<@(libraries)',
75
- ],
76
-
77
- # Define library directories:
78
- 'library_dirs': [
79
- '<@(library_dirs)',
80
- ],
81
- },
82
-
83
- # C/C++ compiler flags:
84
- 'cflags': [
85
- # Enable commonly used warning options:
86
- '-Wall',
87
-
88
- # Aggressive optimization:
89
- '-O3',
90
- ],
91
-
92
- # C specific compiler flags:
93
- 'cflags_c': [
94
- # Specify the C standard to which a program is expected to conform:
95
- '-std=c99',
96
- ],
97
-
98
- # C++ specific compiler flags:
99
- 'cflags_cpp': [
100
- # Specify the C++ standard to which a program is expected to conform:
101
- '-std=c++11',
102
- ],
103
-
104
- # Linker flags:
105
- 'ldflags': [],
106
-
107
- # Apply conditions based on the host OS:
108
- 'conditions': [
109
- [
110
- 'OS=="mac"',
111
- {
112
- # Linker flags:
113
- 'ldflags': [
114
- '-undefined dynamic_lookup',
115
- '-Wl,-no-pie',
116
- '-Wl,-search_paths_first',
117
- ],
118
- },
119
- ], # end condition (OS=="mac")
120
- [
121
- 'OS!="win"',
122
- {
123
- # C/C++ flags:
124
- 'cflags': [
125
- # Generate platform-independent code:
126
- '-fPIC',
127
- ],
128
- },
129
- ], # end condition (OS!="win")
130
- ], # end conditions
131
- }, # end target <(addon_target_name)
132
-
133
- # Target to copy a generated add-on to a standard location:
134
- {
135
- 'target_name': 'copy_addon',
136
-
137
- # Declare that the output of this target is not linked:
138
- 'type': 'none',
139
-
140
- # Define dependencies:
141
- 'dependencies': [
142
- # Require that the add-on be generated before building this target:
143
- '<(addon_target_name)',
144
- ],
145
-
146
- # Define a list of actions:
147
- 'actions': [
148
- {
149
- 'action_name': 'copy_addon',
150
- 'message': 'Copying addon...',
151
-
152
- # Explicitly list the inputs in the command-line invocation below:
153
- 'inputs': [],
154
-
155
- # Declare the expected outputs:
156
- 'outputs': [
157
- '<(addon_output_dir)/<(addon_target_name).node',
158
- ],
159
-
160
- # Define the command-line invocation:
161
- 'action': [
162
- 'cp',
163
- '<(PRODUCT_DIR)/<(addon_target_name).node',
164
- '<(addon_output_dir)/<(addon_target_name).node',
165
- ],
166
- },
167
- ], # end actions
168
- }, # end target copy_addon
169
- ], # end targets
170
- }