com.github.chen0040.glm.links.InverseSquaredLinkFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-glm Show documentation
Show all versions of java-glm Show documentation
Generalized linear models implemented in Java
package com.github.chen0040.glm.links;
/**
* Created by xschen on 14/8/15.
*/
///
/// Generally applicable to:
/// 1. Inverse Gaussian
///
public class InverseSquaredLinkFunction extends AbstractLinkFunction {
@Override
public LinkFunction makeCopy(){
return new InverseSquaredLinkFunction();
}
@Override
public double GetLink(double b) {
return -1.0 / (b * b);
}
@Override
public double GetInvLink(double a) {
return Math.sqrt(-a);
}
@Override
public double GetInvLinkDerivative(double a) {
return -1.0 / Math.sqrt(-a);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy