MCPcopy Create free account
hub / github.com/WinVector/Logistic / effects

Method effects

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

Source from the content-addressed store, hash-verified

97 }
98
99 @Override
100 public SortedMap<String,Double> effects(final int base, final double[] x) {
101 final SortedMap<String,Double> r = new TreeMap<String,Double>();
102 for(final Entry<String, VectorRow> me: levelCodes.entrySet()) {
103 final String level = me.getKey();
104 final VectorRow code = me.getValue();
105 final double v = dot(base,x,code.levelEncodings);
106 r.put(level,v);
107 }
108 return r;
109 }
110
111 @Override
112 public SortedMap<String,Double> detailedEffects(final int base, final double[] x) {

Callers 1

effectTestMethod · 0.95

Calls 1

dotMethod · 0.95

Tested by

no test coverage detected