Skip to content

Commit b1a3c12

Browse files
authored
Update example.c
Signed-off-by: Sachin Pangal <151670745+Sachinn-64@users.noreply.github.com>
1 parent b510fdc commit b1a3c12

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib/stats/base/ndarray/dnanmidrange/examples/c

lib/node_modules/@stdlib/stats/base/ndarray/dnanmidrange/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int main( void ) {
3838
int64_t shape[] = { 4 };
3939

4040
// Specify the array strides:
41-
int64_t strides[] = { 2 * STDLIB_NDARRAY_FLOAT64_BYTES_PER_ELEMENT };
41+
int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT64_BYTES_PER_ELEMENT };
4242

4343
// Specify the byte offset:
4444
const int64_t offset = 0;
@@ -64,11 +64,11 @@ int main( void ) {
6464
// Define a list of ndarrays:
6565
const struct ndarray *arrays[] = { x };
6666

67-
// Compute the NaN-aware midrange:
67+
// Compute the mid-range:
6868
double v = stdlib_stats_dnanmidrange( arrays );
6969

7070
// Print the result:
71-
printf( "nanmidrange: %lf\n", v );
71+
printf( "mid-range: %lf\n", v );
7272

7373
// Free allocated memory:
7474
stdlib_ndarray_free( x );

0 commit comments

Comments
 (0)