Lines Matching defs:values
343 * \brief Retruns a Piecewise SBasis with prescribed values at prescribed times.
345 * \param times: vector of times at which the values are given. Should be sorted in increasing order.
346 * \param values: vector of prescribed values. Should have the same size as times and be sorted accordingly.
349 Piecewise<SBasis> interpolate(std::vector<double> times, std::vector<double> values, unsigned smoothness){
350 assert ( values.size() == times.size() );
351 if ( values.empty() ) return Piecewise<SBasis>();
352 if ( values.size() == 1 ) return Piecewise<SBasis>(values[0]);//what about time??
362 for (unsigned i = 0; i<values.size()-1; i++){
363 result.push(bump_out*values[i]+bump_in*values[i+1],times[i+1]);