desc.profiles.SumProfile.to_powerseries

SumProfile.to_powerseries(order=6, xs=100, sym='auto', rcond=None, w=None)

Convert this profile to a PowerSeriesProfile.

Parameters:
  • order (int) – polynomial order

  • xs (int or ndarray) – x locations to use for fit. If an integer, uses that many points linearly spaced between 0,1

  • sym (bool or "auto") – Whether to enforce explicit even parity

  • rcond (float) – Relative condition number of the fit. Singular values smaller than this relative to the largest singular value will be ignored. The default value is len(x)*eps, where eps is the relative precision of the float type, about 2e-16 in most cases.

  • w (array-like, shape(M,)) – Weights to apply to the y-coordinates of the sample points. For gaussian uncertainties, use 1/sigma (not 1/sigma**2).

Returns:

profile (PowerSeriesProfile) – profile in power series form.