Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.ma.masked_array.get_real

masked_array.get_real()[source]

Return the real part of the masked array.

The returned array is a view on the real part of theMaskedArraywhoseget_real method is called.

Parameters:

None

Returns:

result : MaskedArray

The real part of the masked array.

Examples

>>>x=np.ma.array([1+1.j,-2j,3.45+1.6j],mask=[False,True,False])>>>x.get_real()masked_array(data = [1.0 -- 3.45],             mask = [False  True False],       fill_value = 1e+20)
  • © Copyright 2008-2009, The Scipy community.
  • Last updated on Jun 10, 2017.
  • Created usingSphinx 1.5.3.

[8]ページ先頭

©2009-2025 Movatter.jp