MCPcopy Create free account
hub / github.com/microsoft/SandDance / transformSymlog

Function transformSymlog

docs/app/js/sanddance-app.js:128956–128960  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

128954var _continuousJs = require("./continuous.js");
128955var _initJs = require("./init.js");
128956function transformSymlog(c) {
128957 return function(x) {
128958 return Math.sign(x) * Math.log1p(Math.abs(x / c));
128959 };
128960}
128961function transformSymexp(c) {
128962 return function(x) {
128963 return Math.sign(x) * Math.expm1(Math.abs(x)) * c;

Callers 1

symlogishFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected