public override double primitive(double x)
        {
            if (x >= xBegin_.Last())
            {
                return(extrapolationHelper_.primitive(x));
            }

            double i;

            if (x >= sectionHelpers_.Keys.Last())
            {
                i = sectionHelpers_.Keys.Last();
            }
            else if (x <= sectionHelpers_.Keys.First())
            {
                i = sectionHelpers_.Keys.First();
            }
            else
            {
                i = sectionHelpers_.Keys.First(y => x < y);
            }
            return(sectionHelpers_[i].primitive(x));
        }
 public double primitive(double x)
 {
     return(quadraticity_ * quadraticHelper_.primitive(x) + (1.0 - quadraticity_) * convMonoHelper_.primitive(x));
 }