zoukankan      html  css  js  c++  java
  • 【Scipy】初步认识

    Scipy扩展包括多种多样的工具箱,这些工具致力于解决科学计算中的常见问题。不同的子模块对应不同的应用,比如插值, 整合, 优化, 图像处理, 统计, 特殊功能等等。

    scipy可以和其他的标准科学计算包相提并论,比如GSL(C 和 C++编写的GNU科学库), 或者 Matlab 的工具箱。 scipy是Python科学计算中的核心扩展;它能够在numpy列表上有效的运作,以便numpy 和 scipy 能够互相协同。

    在执行一个历程之前,值得核对期望的数据处理工作是否已经在Scipy中执行。作为非专业的开发人员, 科研人员往往倾向于重复造轮子,这使得写出的代码冗余,不佳, 难以共享和不利于维护。相反, Scipy中的代码是经过优化和测试过的,而且可能的情况是是最值得使用的。


    scipy 包括以下特殊任务的子模块:

    scipy.cluster Vector quantization / Kmeans
    scipy.constants Physical and mathematical constants
    scipy.fftpack Fourier transform
    scipy.integrate Integration routines
    scipy.interpolate Interpolation
    scipy.io Data input and output
    scipy.linalg Linear algebra routines
    scipy.ndimage n-dimensional image package
    scipy.odr Orthogonal distance regression
    scipy.optimize Optimization
    scipy.signal Signal processing
    scipy.sparse Sparse matrices
    scipy.spatial Spatial data structures and algorithms
    scipy.special Any special mathematical functions
    scipy.stats Statistics

    所有上面的子模块均依赖于 numpy,但是模块之间应该保持相互尽可能的独立。导入 Numpy 和这些 Scipy 模块的标准方式如下:

    >>> import numpy as np
    >>> from scipy import stats  # same for other sub-modules
    

    scipy主空间很有可能包含了一些 numpy 函数(试试 scipy.cosnp.cos)。 这些暴露仅仅是历史的原因;通常没有理由在你的代码中使用import scipy

  • 相关阅读:
    HDU 1505 City Game
    HDU 1506 Largest Rectangle in a Histogram
    HDU 1838 Chessboard
    HDU 2512 一卡通大冒险
    HDU 1081 To The Max
    HDU 2845 Beans
    HDU 1422 重温世界杯
    HDU 1231 最大连续子序列
    第6章 接口和实现
    java面向抽象编程样例
  • 原文地址:https://www.cnblogs.com/nju2014/p/5621737.html
Copyright © 2011-2022 走看看