MCPcopy Index your code
hub / github.com/BrainJS/brain.js / isAround

Function isAround

test/base/bitwise.js:6–10  ·  view source on GitHub ↗
(actual, expected)

Source from the content-addressed store, hash-verified

4let wiggle = 0.1;
5
6function isAround(actual, expected) {
7 if (actual > (expected + wiggle)) return false;
8 if (actual < (expected - wiggle)) return false;
9 return true;
10}
11
12function testBitwise(data, op) {
13 let net = new brain.NeuralNetwork();

Callers 3

testBitwiseFunction · 0.85
testBitwiseAdamFunction · 0.85
testBitwiseAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected