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

Method dot

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

Source from the content-addressed store, hash-verified

89
90
91 private double dot(final int base, final double[] x, final double[] code) {
92 double v = 0.0;
93 for(int i=0;i<targetDim;++i) {
94 v += x[base+index+i]*code[i];
95 }
96 return v;
97 }
98
99 @Override
100 public SortedMap<String,Double> effects(final int base, final double[] x) {

Callers 3

effectsMethod · 0.95
detailedEffectsMethod · 0.95
effectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected