Results of 1 - 10 of about 36 for average (0.005 sec.)
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 13693
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...Python テストスイートの出力例です: [ Top 10 ] < frozen importlib . _bootstrap > : 716 : size = 4855 KiB , count = 39328 , average = 126 B < frozen importlib . _bootstrap > : 284 : size = 521 KiB , count = 3199 , average = 167 B / usr / lib / python3 .4.../ collections / __init__ . py : 368 : size = 244 KiB , count = 2315 , average = 108 B / usr / lib / python3 .4 / unittest / case . py : 381 : size = 185 KiB , count = 779 , average = 243 B / usr / lib.../ python3 .4 / unittest / case . py : 402 : size = 154 KiB , count = 378 , average = 416 B / usr / lib / python3 .4 / abc . py : 133 : size = 88.7 KiB , count = 347 , average = 262 B < frozen importlib . _... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 13693
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...Python テストスイートの出力例です: [ Top 10 ] < frozen importlib . _bootstrap > : 716 : size = 4855 KiB , count = 39328 , average = 126 B < frozen importlib . _bootstrap > : 284 : size = 521 KiB , count = 3199 , average = 167 B / usr / lib / python3 .4.../ collections / __init__ . py : 368 : size = 244 KiB , count = 2315 , average = 108 B / usr / lib / python3 .4 / unittest / case . py : 381 : size = 185 KiB , count = 779 , average = 243 B / usr / lib.../ python3 .4 / unittest / case . py : 402 : size = 154 KiB , count = 378 , average = 416 B / usr / lib / python3 .4 / abc . py : 133 : size = 88.7 KiB , count = 347 , average = 262 B < frozen importlib . _... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 10396
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...るという意味でドキュメントの情報を増やすと同時に、ドキュメントに書かれているコードが正しい事を確認できるようになります: def average ( values ): """数値のリストの算術平均を計算する。 >>> print(average([20, 30, 70])) 40.0 """ return sum ( values ) / len (...ットを別のファイルで管理することができます: import unittest class TestStatisticalFunctions ( unittest . TestCase ): def test_average ( self ): self . assertEqual ( average ([ 20 , 30 , 70 ]), 40.0 ) self . assertEqual ( round ( average ([ 1 , 5 , 7 ]), 1...), 4.3 ) with self . assertRaises ( ZeroDivisionError ): average ([]) with self . assertRaises ( TypeError ): average ( 20 , 30 , 70 ) unittest . main () # コマンドラインからこれを呼び出す... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 10396
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...るという意味でドキュメントの情報を増やすと同時に、ドキュメントに書かれているコードが正しい事を確認できるようになります: def average ( values ): """数値のリストの算術平均を計算する。 >>> print(average([20, 30, 70])) 40.0 """ return sum ( values ) / len (...ットを別のファイルで管理することができます: import unittest class TestStatisticalFunctions ( unittest . TestCase ): def test_average ( self ): self . assertEqual ( average ([ 20 , 30 , 70 ]), 40.0 ) self . assertEqual ( round ( average ([ 1 , 5 , 7 ]), 1...), 4.3 ) with self . assertRaises ( ZeroDivisionError ): average ([]) with self . assertRaises ( TypeError ): average ( 20 , 30 , 70 ) unittest . main () # コマンドラインからこれを呼び出す... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 8067
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/
...ョン: from heapq import heapify , heapreplace from random import expovariate , gauss from statistics import mean , quantiles average_arrival_interval = 5.6 average_service_time = 15.0 stdev_service_time = 3.5 num_servers = 3 waits = [] arrival_time = 0.0...e when each server becomes available heapify ( servers ) for i in range ( 1_000_000 ): arrival_time += expovariate ( 1.0 / average_arrival_interval ) next_server_available = servers [ 0 ] wait = max ( 0.0 , next_server_available - arrival_time ) waits ....append ( wait ) service_duration = max ( 0.0 , gauss ( average_service_time , stdev_service_time )) service_completed = arrival_time + wait + service_duration heapreplace ( servers , se... - https://man.mtool.work/python/3.14/library/random.html
- random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 8067
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/
...ョン: from heapq import heapify , heapreplace from random import expovariate , gauss from statistics import mean , quantiles average_arrival_interval = 5.6 average_service_time = 15.0 stdev_service_time = 3.5 num_servers = 3 waits = [] arrival_time = 0.0...e when each server becomes available heapify ( servers ) for i in range ( 1_000_000 ): arrival_time += expovariate ( 1.0 / average_arrival_interval ) next_server_available = servers [ 0 ] wait = max ( 0.0 , next_server_available - arrival_time ) waits ....append ( wait ) service_duration = max ( 0.0 , gauss ( average_service_time , stdev_service_time )) service_completed = arrival_time + wait + service_duration heapreplace ( servers , se... - https://man.mtool.work/python/3.14/library/random.html
- Time complexity of operations on built-in types — Python 3.14.8 ドキュメント 7956
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Time complexity of operations on built-in types テーマ 自動 ライト ダーク | Time complexity of operations on built-in types ¶ This p
...n ) x in t O ( n ) min(t) , max(t) O ( n ) Get length ( len(t) ) [ 5 ] O (1) dict ¶ The times listed for dict objects are average-case times, as they assume the hash function for the objects is sufficiently robust to make collisions uncommon. They also...slot to the right, moving n - k elements. The worst case is index 0, where the whole rest of the list has to be moved; the average case, an index in the middle of the list, takes O ( n /2) = O ( n ) operations; and operating at the end of the list moves... - https://man.mtool.work/python/3.14/builtins/time-complexity.html
- Time complexity of operations on built-in types — Python 3.14.8 ドキュメント 7956
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Time complexity of operations on built-in types テーマ 自動 ライト ダーク | Time complexity of operations on built-in types ¶ This p
...n ) x in t O ( n ) min(t) , max(t) O ( n ) Get length ( len(t) ) [ 5 ] O (1) dict ¶ The times listed for dict objects are average-case times, as they assume the hash function for the objects is sufficiently robust to make collisions uncommon. They also...slot to the right, moving n - k elements. The worst case is index 0, where the whole rest of the list has to be moved; the average case, an index in the middle of the list, takes O ( n /2) = O ( n ) operations; and operating at the end of the list moves... - https://man.mtool.work/python/3.14/builtins/time-complexity.html
- heapq --- ヒープキューアルゴリズム — Python 3.14.8 ドキュメント 7639
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » heapq --- ヒープキューアルゴリズム テーマ 自動 ライト ダーク | heapq --- ヒープキューアルゴリズム ¶ ソースコード: Lib/he
...ral tendency for a set of numbers. In distributions skewed by outliers, the median provides a more stable estimate than an average (arithmetic mean). A running median is an online algorithm that updates continuously as new data arrives. A running median...ow the midpoint and a min-heap for values above the midpoint. When the two heaps have the same size, the new median is the average of the tops of the two heaps; otherwise, the median is at the top of the larger heap: def running_median ( iterable ): "Yi... - https://man.mtool.work/python/3.14/library/heapq.html
- heapq --- ヒープキューアルゴリズム — Python 3.14.8 ドキュメント 7639
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » heapq --- ヒープキューアルゴリズム テーマ 自動 ライト ダーク | heapq --- ヒープキューアルゴリズム ¶ ソースコード: Lib/he
...ral tendency for a set of numbers. In distributions skewed by outliers, the median provides a more stable estimate than an average (arithmetic mean). A running median is an online algorithm that updates continuously as new data arrives. A running median...ow the midpoint and a min-heap for values above the midpoint. When the two heaps have the same size, the new median is the average of the tops of the two heaps; otherwise, the median is at the top of the larger heap: def running_median ( iterable ): "Yi... - https://man.mtool.work/python/3.14/library/heapq.html