434445464748495051
* {@inheritDoc} */ @Override public double evaluate(final double[] x) { if (x.length > 1) { throw new AIFHError("The logistic link function can only accept one parameter."); } return 1.0 / (1.0 + Math.exp(-x[0])); }
41424344454647484950
* {@inheritDoc} */ @Override public double evaluate(final double[] x) { if (x.length > 1) { throw new AIFHError("The linear link function can only accept one parameter."); } return x[0]; }
107108109110111112113
if (probabilities[i] != 0.0) { return i; } } throw new AIFHError("Invalid probabilities."); }
43444546474849505152
* {@inheritDoc} */ @Override public double evaluate(final double[] x) { if (x.length > 1) { throw new AIFHError("The inverse squared link function can only accept one parameter."); } return -Math.pow(x[0], -2); }
* {@inheritDoc} */ @Override public double evaluate(final double[] x) { if (x.length > 1) { throw new AIFHError("The inverse link function can only accept one parameter."); } return -Math.pow(x[0], -1); }
* {@inheritDoc} */ @Override public double evaluate(final double[] x) { if (x.length > 1) { throw new AIFHError("The logistic link function can only accept one parameter."); } return Math.log(x[0]); }
40414243444546474849
42434445464748495051
424344454647484950