推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
mocxe2vwww
V2EX  ›  Python

Python 插值的问题

  •  
  •   mocxe2vwww · Dec 30, 2018 · 2817 views
    This topic created in 2719 days ago, the information mentioned may be changed or developed.

    有四组数据:

    [2699, 4418, 2400, 3699]

    [2699, 4418, 2400, 3699]

    [2699, 4418, 3699]

    [2699, 4418, 2400, 3699]

    他们对应的是时间:

    [8:00, 9:00, 10:00, 11:00]

    第三组数据没有 10:00, 如何找到位置,并填充一个平均值?

    5 replies    2018-12-30 12:34:56 +08:00
    ericls
        1
    ericls  
       Dec 30, 2018 via iPhone
    这个跟 python 好像关系不大
    mocxe2vwww
        2
    mocxe2vwww  
    OP
       Dec 30, 2018
    @ericls 意思是 python 实现
    qcts33
        3
    qcts33  
       Dec 30, 2018
    直观的思路是在缺失的组上枚举缺失的位置,寻找误差最小的位置
    似乎可以写成动态规划,但懒得想了
    CallMeReznov
        4
    CallMeReznov  
       Dec 30, 2018
    在输出产生的时候就不能在里面用 0 他填充吗?
    然后在后期处理的时候判断如果 X[3]==0 用整个 X 的平均数更新 X[3]
    linghutf
        5
    linghutf  
       Dec 30, 2018
    线性回归插值
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2619 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 15:54 · PVG 23:54 · LAX 08:54 · JFK 11:54
    ♥ Do have faith in what you're doing.