def create_test_data_vector(values_list: list): data_vector = DataVector() for values in values_list: point = DataPoint() for dimension_value in values: point.add_dimension(dimension_value) data_vector.add_point(point) return data_vector
def initialize_cluster(self): point = DataPoint() for dimension in range(self.data_vector.dimension): random_value = random.uniform(self.minimum.value(dimension + 1), self.maximum.value(dimension + 1)) point.add_dimension(random_value) return point
def create_test_data_point(values: list): point = DataPoint() for dimension_value in values: point.add_dimension(dimension_value) return point