TODO [ex999.0]ΒΆ

../../_images/sphx_glr_fig-exercise-cost-mean-1_001.png
import numpy as np
import matplotlib.pyplot as plt
import lmlib as lm

from L1_costs import getSEAverage # import cost computation functions
from L1_plots import plotFigsCR0 # import plotting functions

NOF_X = 100
J_MAX = 300

y = np.array([4.2, 4.6, 3.4, 2.9, 3.5, 3.1, 5.1, 10, 11, 12, 13])

(k, x_range, J, ind_x) = getSEAverage(y, NOF_X, J_MAX)
plotFigsCR0(y, k, ind_x, x_range, J, J_MAX)

plt.show()

Total running time of the script: ( 0 minutes 0.167 seconds)

Gallery generated by Sphinx-Gallery