Class CoxGradientDiscrete

Object
CoxGradientDiscrete
All Implemented Interfaces:
Computation<List<DRes<SFixed>>,​ProtocolBuilderNumeric>

public class CoxGradientDiscrete
extends Object
implements Computation<List<DRes<SFixed>>,​ProtocolBuilderNumeric>
  • Constructor Details

    • CoxGradientDiscrete

      public CoxGradientDiscrete​(List<SurvivalInfoDiscrete> data, List<DRes<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 DRes<List<DRes<SFixed>>> buildComputation​(ProtocolBuilderNumeric builder)
      Specified by:
      buildComputation in interface Computation<List<DRes<SFixed>>,​ProtocolBuilderNumeric>