comparison trafficintelligence/traffic_engineering.py @ 1198:fa07a78b29f6

minor modif, change to makefile for repo opencv installation
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sat, 08 Oct 2022 13:17:35 -0400
parents 5874ece33637
children 770306fef827
comparison
equal deleted inserted replaced
1197:0475b4cd0cfb 1198:fa07a78b29f6
185 self.kc=kj/2 185 self.kc=kj/2
186 self.qmax=vf*kj/4 186 self.qmax=vf*kj/4
187 187
188 def v(self,k): 188 def v(self,k):
189 from numpy import log 189 from numpy import log
190 return self.vmax*(1-k/self.kj) 190 return self.vf*(1-k/self.kj)
191 191
192 192
193 class GreenbergFD(FundamentalDiagram): 193 class GreenbergFD(FundamentalDiagram):
194 '''Speed is the logarithm of density''' 194 '''Speed is the logarithm of density'''
195 def __init__(self, vc, kj): 195 def __init__(self, vc, kj):