基本知识¶
%reload_ext autoreload
%autoreload 2
%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from pathlib import Path
Path.ls = lambda x:list(x.iterdir())
import jpype, math, random
import os, sys
from jpype import *
try :
jarLocation = "/home/fsf/software/inforDynamics-dist-1.5/infodynamics.jar"
jpype.startJVM(jpype.getDefaultJVMPath(), "-ea", "-Djava.class.path=" + jarLocation)
except:
print("JVM has already started !")
sys.path.append('../../srcs')
from jidt.data import example1, example2
x,y = example2(length=3000,noise_level=[0.1,0.1])
fig, ax = plt.subplots(1,1,figsize=(8,3))
ax.plot(x,label='x')
ax.plot(y,label='y')
ax.legend()
plt.show()
