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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      buildComputation in interface 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>