Class CoxGradientDiscrete

java.lang.Object
dk.alexandra.fresco.stat.survival.cox.CoxGradientDiscrete
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 CoxGradientDiscrete
extends Object
implements 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>
  • Constructor Summary

    Constructors 
    Constructor Description
    CoxGradientDiscrete​(List<SurvivalInfoDiscrete> data, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> beta)
    Compute the gradient of the score function for a Cox model on the given data with coefficients beta and learning rate alpha.
  • 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

    • CoxGradientDiscrete

      public CoxGradientDiscrete​(List<SurvivalInfoDiscrete> data, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> beta)
      Compute the gradient of the score function for a Cox model on the given data with coefficients beta and learning rate alpha. The data is assumed to be sorted on the time parameter.
      Parameters:
      data -
      beta -
  • 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>