IndexStaByPeriod.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: module IndexStaByPeriod</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4. </head><body bgcolor="#f0f0f8">
  5. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
  6. <tr bgcolor="#7799ee">
  7. <td valign=bottom>&nbsp;<br>
  8. <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>IndexStaByPeriod</strong></big></big></font></td
  9. ><td align=right valign=bottom
  10. ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:d%3A%5Cplatform%5Cplatform%5Cmiddle%5Cindexstabyperiod.py">d:\platform\platform\middle\indexstabyperiod.py</a></font></td></tr></table>
  11. <p><tt>基于某个周期(一天,一周...)的指标统计库</tt></p>
  12. <p>
  13. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  14. <tr bgcolor="#aa55cc">
  15. <td colspan=3 valign=bottom>&nbsp;<br>
  16. <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
  17. <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  18. <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="IndexStaByOneCycle.html">IndexStaByOneCycle</a><br>
  19. <a href="PathSetting.html">PathSetting</a><br>
  20. </td><td width="25%" valign=top><a href="Tools.html">Tools</a><br>
  21. <a href="datetime.html">datetime</a><br>
  22. </td><td width="25%" valign=top><a href="numpy.html">numpy</a><br>
  23. <a href="pandas.html">pandas</a><br>
  24. </td><td width="25%" valign=top><a href="sys.html">sys</a><br>
  25. </td></tr></table></td></tr></table><p>
  26. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  27. <tr bgcolor="#ee77aa">
  28. <td colspan=3 valign=bottom>&nbsp;<br>
  29. <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
  30. <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  31. <td width="100%"><dl>
  32. <dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
  33. </font></dt><dd>
  34. <dl>
  35. <dt><font face="helvetica, arial"><a href="IndexStaByPeriod.html#IndexStaByPeriod">IndexStaByPeriod</a>
  36. </font></dt></dl>
  37. </dd>
  38. </dl>
  39. <p>
  40. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  41. <tr bgcolor="#ffc8d8">
  42. <td colspan=3 valign=bottom>&nbsp;<br>
  43. <font color="#000000" face="helvetica, arial"><a name="IndexStaByPeriod">class <strong>IndexStaByPeriod</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
  44. <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  45. <td width="100%">Methods defined here:<br>
  46. <dl><dt><a name="IndexStaByPeriod-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Initialize&nbsp;self.&nbsp;&nbsp;See&nbsp;help(type(self))&nbsp;for&nbsp;accurate&nbsp;signature.</tt></dd></dl>
  47. <dl><dt><a name="IndexStaByPeriod-drive_capacity_sta"><strong>drive_capacity_sta</strong></a>(self, cap, df_bms)</dt><dd><tt>计算周期内行车净累积ah<br>
  48. ---------输入参数------------<br>
  49. cap&nbsp;:&nbsp;标称容量<br>
  50. df_bms&nbsp;:&nbsp;一段周期内的预处理后的bms数据<br>
  51. df_gps&nbsp;:&nbsp;一段周期内的预处理后的gps数据<br>
  52. ---------输出参数------------<br>
  53. sum_ah&nbsp;:&nbsp;本周期的净累积ah</tt></dd></dl>
  54. <dl><dt><a name="IndexStaByPeriod-drive_energy_sta"><strong>drive_energy_sta</strong></a>(self, cap, df_bms)</dt><dd><tt>计算周期内行车净累积能量<br>
  55. ---------输入参数------------<br>
  56. cap&nbsp;:&nbsp;标称容量<br>
  57. df_bms&nbsp;:&nbsp;一段周期内的预处理后的bms数据<br>
  58. df_gps&nbsp;:&nbsp;一段周期内的预处理后的gps数据<br>
  59. ---------输出参数------------<br>
  60. sum_ah&nbsp;:&nbsp;本周期的净累积能量</tt></dd></dl>
  61. <dl><dt><a name="IndexStaByPeriod-drive_odo_sta"><strong>drive_odo_sta</strong></a>(self, df_bms, df_gps)</dt><dd><tt>计算周期内行车累积行驶里程<br>
  62. ---------输入参数------------<br>
  63. df_bms&nbsp;:&nbsp;一段周期内的预处理后的bms数据<br>
  64. df_gps&nbsp;:&nbsp;一段周期内的预处理后的gps数据<br>
  65. ---------输出参数------------<br>
  66. sum_odo&nbsp;:&nbsp;累积里程,&nbsp;如果该周期内gps均无效,则返回None<br>
  67. invalid_rate&nbsp;:&nbsp;该周期内gps无效的bms数据行所占比例</tt></dd></dl>
  68. <dl><dt><a name="IndexStaByPeriod-drive_soc_sta"><strong>drive_soc_sta</strong></a>(self, df_bms)</dt><dd><tt>计算周期内行车净累积soc<br>
  69. ---------输入参数------------<br>
  70. cap&nbsp;:&nbsp;标称容量<br>
  71. df_bms&nbsp;:&nbsp;一段周期内的预处理后的bms数据<br>
  72. df_gps&nbsp;:&nbsp;一段周期内的预处理后的gps数据<br>
  73. ---------输出参数------------<br>
  74. sum_ah&nbsp;:&nbsp;本周期的净累积soc</tt></dd></dl>
  75. <dl><dt><a name="IndexStaByPeriod-drive_time_sta"><strong>drive_time_sta</strong></a>(self, df_bms)</dt><dd><tt>计算周期内累计行车时长/h<br>
  76. ---------输入参数------------<br>
  77. cap&nbsp;:&nbsp;标称容量<br>
  78. df_bms&nbsp;:&nbsp;一段周期内的预处理后的bms数据<br>
  79. df_gps&nbsp;:&nbsp;一段周期内的预处理后的gps数据<br>
  80. ---------输出参数------------<br>
  81. sum_ah&nbsp;:&nbsp;本周期的累计行车时长</tt></dd></dl>
  82. <hr>
  83. Data descriptors defined here:<br>
  84. <dl><dt><strong>__dict__</strong></dt>
  85. <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
  86. </dl>
  87. <dl><dt><strong>__weakref__</strong></dt>
  88. <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
  89. </dl>
  90. </td></tr></table></td></tr></table><p>
  91. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  92. <tr bgcolor="#55aa55">
  93. <td colspan=3 valign=bottom>&nbsp;<br>
  94. <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
  95. <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  96. <td width="100%"><strong>CONF_PATH</strong> = r'D:\Platform\platform\CONFIGURE\'</td></tr></table><p>
  97. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  98. <tr bgcolor="#7799ee">
  99. <td colspan=3 valign=bottom>&nbsp;<br>
  100. <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
  101. <tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  102. <td width="100%">lmstack</td></tr></table>
  103. </body></html>