You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .editorconfig
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ indent_style = tab
121
121
[*.{md,md.txt}]
122
122
indent_style = space
123
123
indent_size = 4
124
-
trim_trailing_whitespace = false
124
+
trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,63 @@
2
2
3
3
> Package changelog.
4
4
5
+
<sectionclass="release"id="unreleased">
6
+
7
+
## Unreleased (2024-12-20)
8
+
9
+
<sectionclass="features">
10
+
11
+
### Features
12
+
13
+
-[`daf43b2`](https://github.com/stdlib-js/stdlib/commit/daf43b2052a0ad89fa4c72caee6d7caedcc4cc38) - add C implementation for `stats/base/dists/triangular/mode`[(#4008)](https://github.com/stdlib-js/stdlib/pull/4008)
-[`daf43b2`](https://github.com/stdlib-js/stdlib/commit/daf43b2052a0ad89fa4c72caee6d7caedcc4cc38) - **feat:** add C implementation for `stats/base/dists/triangular/mode`[(#4008)](https://github.com/stdlib-js/stdlib/pull/4008)_(by JoyBoy, Philipp Burckhardt)_
38
+
39
+
</details>
40
+
41
+
</section>
42
+
43
+
<!-- /.commits -->
44
+
45
+
<sectionclass="contributors">
46
+
47
+
### Contributors
48
+
49
+
A total of 2 people contributed to this release. Thank you to the following contributors:
Copy file name to clipboardExpand all lines: README.md
+94Lines changed: 94 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,100 @@ for ( i = 0; i < 10; i++ ) {
172
172
173
173
<!-- /.examples -->
174
174
175
+
<!-- C interface documentation. -->
176
+
177
+
* * *
178
+
179
+
<sectionclass="c">
180
+
181
+
## C APIs
182
+
183
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
245
+
return min + ( v*(max-min) );
246
+
}
247
+
248
+
int main( void ) {
249
+
double a;
250
+
double b;
251
+
double c;
252
+
double y;
253
+
int i;
254
+
255
+
for ( i = 0; i < 25; i++ ) {
256
+
a = random_uniform( 0.0, 10.0 );
257
+
b = random_uniform( 0.0, 10.0 ) + a;
258
+
c = a + (b - a) * random_uniform( 0.0, 1.0 ); // mode between a and b
259
+
y = stdlib_base_dists_triangular_mode( a, b, c );
260
+
printf( "a: %lf, b: %lf, c: %lf, M(X;a,b,c): %lf\n", a, b, c, y );
261
+
}
262
+
}
263
+
```
264
+
265
+
</section>
266
+
267
+
<!-- /.examples -->
268
+
175
269
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
0 commit comments