@@ -0,0 +1,404 @@
+import java.util.ArrayList;%0A%0Apublic class MarkovSeries %7B%0A%09protected Matrix a;%0A%09protected Matrix x_0;%0A%09%0A%09protected Matrix x_n;%0A%09private ArrayList%3CMatrix%3E x_i;%0A%09%0A%09%0A%09public MarkovSeries(Matrix a, Matrix x_0) %7B%0A%09%09this.a = a;%0A%09%09this.x_0 = x_0;%0A%09%09//Fix references and copy instead%0A%09%09this.x_n = x_0;%0A%09%09%0A%09%09x_i = new ArrayList%3CMatrix%3E();%0A%09%09x_i.add(this.x_0);%0A%09%7D%0A%09%0A%09protected void iterate() %7B%0A%09%09a.multR(x_n);%0A%09%7D%0A%7D%0A

Create MarkovSeries.java