Initial commit to repo.
This commit is contained in:
40
main.py
Normal file
40
main.py
Normal file
@@ -0,0 +1,40 @@
|
||||
from dataclasses import dataclass
|
||||
from sys import float_info
|
||||
from typing import TypeAlias;
|
||||
|
||||
@dataclass
|
||||
class DatasetCalculator:
|
||||
data_set: list[float]
|
||||
|
||||
def first_quartile(self) -> float:
|
||||
self.lower_data_set()
|
||||
|
||||
def second_quartile(self) -> float:
|
||||
...
|
||||
|
||||
def third_quartile(self) -> float:
|
||||
...
|
||||
|
||||
def interquartile_range(self) -> float:
|
||||
...
|
||||
|
||||
def semi_interquartile_range(self) -> float:
|
||||
...
|
||||
|
||||
def strip_outliers(self) -> DatasetCalculator:
|
||||
...
|
||||
|
||||
def lower_data_set(self) -> DatasetCalculator:
|
||||
...
|
||||
|
||||
def upper_data_set(self) -> DatasetCalculator:
|
||||
...
|
||||
|
||||
def median(self) -> float:
|
||||
...
|
||||
|
||||
def main():
|
||||
...
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user