protected override float Outputs(OutputVector result, Floatarray v) { result.Clear(); charclass.Object.XOutputs(result, v); CHECK_ARG(result.nKeys() > 0, "result.nKeys() > 0"); if (PGetb("junk") && !DisableJunk && !junkclass.IsEmpty) { result.Normalize(); OutputVector jv = new OutputVector(); junkclass.Object.XOutputs(jv, v); for (int i = 0; i < result.nKeys(); i++) { result.Values[i] *= jv.Value(0); } result[jc()] = jv.Value(1); } if (PGeti("ul") > 0 && !ulclass.IsEmpty) { throw new Exception("ulclass not implemented"); } return(0.0f); }
protected override float Outputs(OutputVector result, Floatarray v) { result.Clear(); charclass.Object.XOutputs(result, v); CHECK_ARG(result.nKeys() > 0, "result.nKeys() > 0"); if (PGetb("junk") && !DisableJunk && !junkclass.IsEmpty) { result.Normalize(); OutputVector jv = new OutputVector(); junkclass.Object.XOutputs(jv, v); for (int i = 0; i < result.nKeys(); i++) result.Values[i] *= jv.Value(0); result[jc()] = jv.Value(1); } if (PGeti("ul") > 0 && !ulclass.IsEmpty) { throw new Exception("ulclass not implemented"); } return 0.0f; }