bundles / numpy 2.4.4 / numpy / polynomial / _polybase / ABCPolyBase / truncate
function
numpy.polynomial._polybase:ABCPolyBase.truncate
Signature
def truncate ( self , size ) Summary
Truncate series to length size.
Extended Summary
Reduce the series to length size by discarding the high degree terms. The value of size must be a positive integer. This can be useful in least squares where the coefficients of the high degree terms may be very small.
Parameters
size: positive intThe series is reduced to length
sizeby discarding the high degree terms. The value ofsizemust be a positive integer.
Returns
new_series: seriesNew instance of series with truncated coefficients.
Aliases
-
numpy.polynomial._polybase.ABCPolyBase.truncate