Markov Chains, Computer Science, Programming, Probability, Problem Solving.
selected_other is not None: diff_new = (numeric_values[i-start] - self.avg_data[i][self.states.index(selected_other)]) * self.state_possibilities[selected_other][next_state_index] if i == 1: pass elif diff_new >= min(self.numericData[0:i]): selected = selected_other else: pass