Class CoxRegressionContinuous
java.lang.Object
dk.alexandra.fresco.stat.survival.cox.CoxRegressionContinuous
- All Implemented Interfaces:
dk.alexandra.fresco.framework.builder.Computation<List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
public class CoxRegressionContinuous extends Object
Estimate the coefficients of a Cox model on the given data using gradient descent.
-
Constructor Summary
Constructors Constructor Description CoxRegressionContinuous(List<SurvivalInfoContinuous> data, int iterations, double alpha, double[] beta)Estimate the coefficients of a Cox model on the given data using gradient descent. -
Method Summary
Modifier and Type Method Description dk.alexandra.fresco.framework.DRes<List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>>buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)
-
Constructor Details
-
CoxRegressionContinuous
public CoxRegressionContinuous(List<SurvivalInfoContinuous> data, int iterations, double alpha, double[] beta)Estimate the coefficients of a Cox model on the given data using gradient descent.- Parameters:
data- The data.iterations- The number of iterations.alpha- The learning rate.beta- The initial guess.
-
-
Method Details
-
buildComputation
public dk.alexandra.fresco.framework.DRes<List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>> buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)- Specified by:
buildComputationin interfacedk.alexandra.fresco.framework.builder.Computation<List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
-