Skip to content

Commit 282cde0

Browse files
authored
Apply batched suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 457d086 commit 282cde0

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/node_modules/@stdlib/stats/base/dists/logistic/pdf/test/test.factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ tape( 'the created function evaluates the pdf for `x` given positive `mu`', func
170170
for ( i = 0; i < x.length; i++ ) {
171171
pdf = factory( mu[i], s[i] );
172172
y = pdf( x[i] );
173-
if ( expected[i] !== null && !(expected[i] === 0.0 && y < EPS ) ) {
173+
if ( expected[i] !== null && !( expected[i] === 0.0 && y < EPS ) ) {
174174
t.strictEqual( isAlmostSameValue( y, expected[i], 4 ), true, 'returns expected value' );
175175
}
176176
}
@@ -193,7 +193,7 @@ tape( 'the created function evaluates the pdf for `x` given negative `mu`', func
193193
for ( i = 0; i < x.length; i++ ) {
194194
pdf = factory( mu[i], s[i] );
195195
y = pdf( x[i] );
196-
if ( expected[i] !== null && !(expected[i] === 0.0 && y < EPS ) ) {
196+
if ( expected[i] !== null && !( expected[i] === 0.0 && y < EPS ) ) {
197197
t.strictEqual( isAlmostSameValue( y, expected[i], 4 ), true, 'returns expected value' );
198198
}
199199
}

lib/node_modules/@stdlib/stats/base/dists/logistic/pdf/test/test.native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ tape( 'the function evaluates the pdf for `x` given positive `mu`', opts, functi
134134
s = positiveMean.s;
135135
for ( i = 0; i < x.length; i++ ) {
136136
y = pdf( x[i], mu[i], s[i] );
137-
if ( expected[i] !== null && !(expected[i] === 0.0 && y < EPS ) ) {
137+
if ( expected[i] !== null && !( expected[i] === 0.0 && y < EPS ) ) {
138138
t.strictEqual( isAlmostSameValue( y, expected[i], 4 ), true, 'returns expected value' );
139139
}
140140
}
@@ -155,7 +155,7 @@ tape( 'the function evaluates the pdf for `x` given negative `mu`', opts, functi
155155
s = negativeMean.s;
156156
for ( i = 0; i < x.length; i++ ) {
157157
y = pdf( x[i], mu[i], s[i] );
158-
if ( expected[i] !== null && !(expected[i] === 0.0 && y < EPS ) ) {
158+
if ( expected[i] !== null && !( expected[i] === 0.0 && y < EPS ) ) {
159159
t.strictEqual( isAlmostSameValue( y, expected[i], 4 ), true, 'returns expected value' );
160160
}
161161
}

lib/node_modules/@stdlib/stats/base/dists/logistic/pdf/test/test.pdf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ tape( 'the function evaluates the pdf for `x` given positive `mu`', function tes
125125
s = positiveMean.s;
126126
for ( i = 0; i < x.length; i++ ) {
127127
y = pdf( x[i], mu[i], s[i] );
128-
if ( expected[i] !== null && !(expected[i] === 0.0 && y < EPS ) ) {
128+
if ( expected[i] !== null && !( expected[i] === 0.0 && y < EPS ) ) {
129129
t.strictEqual( isAlmostSameValue( y, expected[i], 4 ), true, 'returns expected value' );
130130
}
131131
}
@@ -146,7 +146,7 @@ tape( 'the function evaluates the pdf for `x` given negative `mu`', function tes
146146
s = negativeMean.s;
147147
for ( i = 0; i < x.length; i++ ) {
148148
y = pdf( x[i], mu[i], s[i] );
149-
if ( expected[i] !== null && !(expected[i] === 0.0 && y < EPS ) ) {
149+
if ( expected[i] !== null && !( expected[i] === 0.0 && y < EPS ) ) {
150150
t.strictEqual( isAlmostSameValue( y, expected[i], 4 ), true, 'returns expected value' );
151151
}
152152
}

0 commit comments

Comments
 (0)