- Speech-recognition 語音識別系統
- R-code 用R语言实现对affy芯片
- CSharp-Self-Define-TabStrip C#自定义TabStrip
- atmapi When we have independent partitions we can apply residual even though other partitions within the frame are corrupt Source Code for Linux v2.13.6.
- Lenet 卷积神经网络(lenet
- xerces-c-3.2.0 xerces changyongkaifabao
文件名称:couroutine
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:894byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Simple example of using python coroutines and generators to create a market simulator with:
1) A one-good market, collecting bids from the agents, which, after each trading period, updates each price, and
2) a set of agents, observing the market price at each trading period, and submitting bids back.
Such a setup would usually be achieved by the observer pattern, where each trader will subscribe to the price changes, but usage of generators and coroutines leads to more elegant code in this case.
1) A one-good market, collecting bids from the agents, which, after each trading period, updates each price, and
2) a set of agents, observing the market price at each trading period, and submitting bids back.
Such a setup would usually be achieved by the observer pattern, where each trader will subscribe to the price changes, but usage of generators and coroutines leads to more elegant code in this case.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
couroutine/MarketGenerators.py
couroutine/__init__.py
couroutine
couroutine/__init__.py
couroutine
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.