12 double LASSO::getVal(){
13 if(_lassoMod)
return _lambda * (_pdf->sumOfSqrtFitFractions() + _pdf->absSumOfSqrtInterferenceFractions());
14 else return _lambda * _pdf->sumOfSqrtFitFractions();
17 int LASSO::numberOfFitFractionsLargerThanThreshold(
double threshold){
18 return _pdf->numberOfFitFractionsLargerThanThreshold(threshold);
22 void LASSO::Gradient(vector<double>& grad){
23 std::vector<double> grad_pdf(this->getParSet()->size());
34 for(
unsigned int j=0; j < grad.size(); j++) grad[j]=0;
35 _pdf->GradientForLasso(grad);