MCPcopy Index your code
hub / github.com/WinVector/Logistic / effect

Method effect

src/com/winvector/variables/LevelVectors.java:128–136  ·  view source on GitHub ↗
(final int base, final double[] x, final String level)

Source from the content-addressed store, hash-verified

126
127
128 @Override
129 public double effect(final int base, final double[] x, final String level) {
130 final VectorRow vectorRow = levelCodes.get(level);
131 if(null!=vectorRow) {
132 return dot(base,x,vectorRow.levelEncodings);
133 } else {
134 return 0.0;
135 }
136 }
137
138 @Override
139 public double effectTest(final int base, final double[] x, final String level) {

Callers 1

translateToMethod · 0.95

Calls 2

dotMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected