class_docstr: Univariate density estimation by orthonormal series expansion
  
  
  Uses an orthonormal polynomial basis to approximate a univariate density.
  
  
  currently all arguments can be given to fit, I might change it to requiring
  arguments in __init__ instead.
class_docstr_tok: ["Univariate","density","estimation","by","orthonormal","series","expansion","Uses","an","orthonormal","polynomial","basis","to","approximate","a","univariate","density",".","currently","all","arguments","can","be","given","to","fit",",","I","might","change","it","to","requiring","arguments","in","__init__","instead","."]
docstr: bona fide density correction
  
  affine shift of density to make it into a proper density
docstr_tok: ["bona","fide","density","correction","affine","shift","of","density","to","make","it","into","a","proper","density"]
code: def _correction(self, x):
      """bona fide density correction
  
      affine shift of density to make it into a proper density
  
      """
      if self._corfactor != 1:
          x *= self._corfactor
  
      if self._corshift != 0:
          x += self._corshift
  
      return x
  
imports: from scipy import stats, integrate, special
  import numpy
label_desc: Use image node_id 6 for calling the DensityOrthoPoly obj's underlying member method code with example usage: obj._correction(x) and returns: x