Studentenversion des ESY6/A Praktikums "signal_processing".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

add_rand.py 14KB

1234
  1. data = [3.300000e+00,5.979374e+00,-1.273212e+00,1.413406e+00,1.212657e+00,-1.098742e+00,8.600979e-01,3.074980e+00,5.712167e+00,1.224368e+01,4.397655e+00,5.907616e+00,8.287786e+00,-2.341430e+00,2.140778e+00,3.261984e+00,5.349493e+00,-5.446398e+00,-1.035838e+00,1.256405e-01,2.339691e+00,-7.945903e+00,-3.254658e+00,-1.822752e+00,2.592759e-01,-6.111606e+00,-2.727094e+00,-7.978969e-01,1.267851e+00,-4.639330e+00,-7.658790e-01,1.629532e+00,1.857379e+00,6.370057e+00,-7.737207e-02,2.933810e+00,3.965793e+00,6.693081e+00,1.285952e+00,4.314163e+00,7.201293e+00,4.283216e+00,4.484528e+00,6.428241e+00,2.994931e+00,2.868188e+00,5.110010e+00,6.364252e-01,9.541907e-01,4.540222e+00,-2.345174e+00,-1.970663e+00,7.703996e-02,-3.771856e+00,-1.821991e+00,-4.376534e+00,-1.877988e+00,-4.546524e+00,-2.057958e-01,-4.380636e+00,4.450349e+00,-4.848163e+00,-3.701720e-01,2.189660e-01,7.356873e-01,1.046872e+00,3.265196e+00,-2.191743e+00,-3.826990e+00,-1.382052e+00,-3.815104e+00,-1.972775e+00,5.505013e-02,2.391754e+00,2.661475e+00,5.272482e+00,1.030286e+00,4.165329e+00,-5.783374e+00,-1.743220e+00,-1.174764e+00,3.750136e+00,-4.311719e+00,-1.574450e+00,-4.752204e+00,-1.630630e+00,-5.874487e+00,-1.849608e+00,-1.349572e+01,-1.307724e+01,-7.233801e+00,-3.974126e+00,-3.993254e+00,1.833310e-01,-4.084670e+00,-4.084611e-02,-5.414014e+00,-6.929903e+00,-4.184460e+00,-2.065172e-01,6.581552e+00,3.885840e-01,2.137746e+00,3.438265e+00,6.065754e+00,1.435268e+00,3.830912e+00,-8.258921e-01,7.412688e-01,3.101440e+00,-3.970874e+00,-7.499379e+00,-3.058542e+00,-1.916880e+00,-3.115893e+00,-3.606315e+00,-3.397209e+00,-4.363531e+00,-1.913524e+00,-1.145990e+01,-6.588683e+00,-5.032800e+00,1.824259e+00,-1.094771e+01,-5.347169e+00,-3.075692e+00,-4.133999e-01,-2.288789e+00,2.670866e+00,-8.228311e+00,-7.210553e+00,-6.033318e+00,1.910579e-01,3.439228e+00,3.363443e+00,3.205876e+00,7.354259e+00,9.230280e-01,5.476341e-01,-1.748672e-01,-1.436147e+00,1.252664e+00,2.326433e+00,3.516393e+00,-6.678423e-01,-4.209119e-01,-1.570241e+00,-2.065862e+00,5.601709e-01,-9.445417e+00,-4.723877e+00,-1.746883e+00,-4.013597e+00,-3.581566e+00,-5.373631e-01,-3.251447e+00,4.806249e+00,-8.305822e+00,-2.293268e+00,5.375365e-01,8.779492e-01,1.997497e+00,2.411813e+00,5.651120e+00,4.108989e-01,-8.424878e-01,3.889938e+00,9.246611e+00,4.495306e+00,5.210482e+00,5.072436e+00,4.857080e+00,6.989478e+00,3.309129e+00,9.989450e+00,6.497641e-01,2.547559e+00,1.309483e+00,2.727267e+00,-8.565928e-01,-8.519061e-01,2.064074e+00,-8.950025e+00,-8.087983e+00,-3.218967e+00,-1.669546e+00,-1.132110e-01,4.690856e+00,-2.059488e+00,2.021932e+00,-2.353524e+00,9.246132e-01,7.736388e+00,-1.067027e+00,-3.701580e+00,-2.196118e+00,3.615768e+00,6.013890e+00,5.915015e+00,1.222257e+01,4.849790e+00,8.522993e+00,2.489893e+00,5.102859e-01,4.110977e+00,4.423498e+00,9.949041e+00,-2.175272e+00,1.210299e+00,1.378659e+00,7.631117e+00,-1.970389e+00,2.908651e-01,1.548586e+00,-6.041686e+00,-2.680084e+00,-2.102909e+00,4.216309e-01,-5.253438e+00,-6.658023e+00,-1.956970e+00,3.330639e+00,-4.828597e-01,2.665081e+00,3.348377e+00,3.975455e+00,9.146870e+00,2.421384e+00,4.726796e+00,7.539860e+00,8.947539e-01,-2.858034e+00,-2.739030e+00,-2.680142e+00,-2.583707e+00,2.612494e+00,4.922718e+00,3.759308e+00,6.208842e+00,-6.309598e+00,-6.916836e+00,-7.292119e+00,-7.172835e+00,-6.064957e+00,-3.023405e+00,-2.853139e+00,-3.290050e-01,-8.198313e+00,-6.337807e+00,-6.787097e+00,-7.549071e+00,-3.852088e+00,-1.246901e+00,-9.962839e-01,1.875456e+00,-1.507444e+00,9.389480e-01,1.157786e+00,6.052736e+00,-1.355084e+00,-1.867138e+00,2.129020e+00,5.114331e+00,8.187211e-01,2.984676e+00,6.255657e+00,2.421887e+00,5.269785e+00,1.511524e+00,1.579108e+00,2.203119e+00,1.250459e+00,1.169740e-01,1.464309e+00,-3.291651e+00,-2.501908e+00,-1.748014e+00,-7.902800e+00,-9.543344e+00,-7.810252e+00,-5.781384e+00,-2.350099e+00,-1.029299e+01,-5.774566e+00,-4.342439e+00,3.266203e+00,-4.975637e+00,-1.345373e+00,-1.089056e+00,3.226560e+00,-9.533690e-01,4.676887e-01,4.203101e+00,-3.873314e+00,-1.516416e+00,1.635924e+00,5.005208e+00,1.683337e+00,2.194184e+00,3.284619e+00,8.490452e+00,-1.607745e+00,6.182781e+00,-2.534814e+00,-1.160179e+00,2.429072e+00,-6.680118e+00,-8.913355e+00,-7.504832e+00,-8.724944e+00,-1.151155e+01,-6.783382e+00,1.796107e+00,-7.586480e+00,1.117470e+00,-6.419213e+00,-3.769720e+00,1.037369e+00,-3.964674e+00,1.527749e+00,-9.467120e+00,-8.498121e+00,-7.406638e+00,-9.761139e-01,6.955874e+00,1.015319e+00,2.722770e+00,7.283591e+00,4.207802e-02,-6.688211e-01,-2.944642e+00,-1.262878e+00,1.390626e+00,5.062559e+00,-6.866218e+00,-1.844342e+00,5.818851e-01,2.159121e+00,-2.700428e+00,2.970469e+00,-4.414018e+00,3.597045e+00,-1.115471e+01,-1.028305e+01,-5.355669e+00,3.458477e+00,-1.133516e+01,-5.208582e+00,2.601890e+00,-5.841000e+00,-7.754324e+00,-1.829335e+00,2.572763e+00,-1.925788e+00,-2.007329e+00,-4.619769e+00,1.625730e+00,8.381837e+00,1.573226e+00,4.278665e+00,4.927870e+00,5.339962e+00,8.346523e+00,-3.538850e+00,-3.638062e+00,1.471237e+00,3.812289e+00,5.070636e+00,7.536049e-01,1.115999e+00,3.999916e+00,-3.351545e+00,-4.263736e+00,-5.423568e+00,-2.681503e+00,1.172330e+00,-2.962377e+00,3.027140e+00,-3.017006e+00,-1.383054e+00,-2.603338e-01,6.632825e+00,-1.442551e+00,5.744904e+00,-1.051167e+00,2.336902e+00,9.770635e+00,2.842666e+00,7.548475e+00,1.486650e+00,-1.286330e+00,4.401748e+00,6.879147e+00,1.294666e+01,-4.832864e-01,4.229566e+00,5.384346e+00,6.786921e+00,3.797541e-01,2.492616e+00,4.588131e+00,-1.957611e+00,-4.239732e+00,-9.074203e-01,-6.310660e-01,-9.979749e-01,1.909473e+00,-2.381412e+00,-7.820001e-01,1.120783e+00,-2.074239e+00,-8.207803e-01,2.017817e+00,-6.351085e-01,8.172462e+00,-6.785430e+00,-1.409280e-01,9.650173e+00,1.645224e+00,5.024771e+00,5.094790e+00,8.092822e+00,4.900069e-01,2.676825e+00,1.964861e+00,-6.349478e-01,1.092309e+00,4.155426e+00,6.047882e+00,1.100495e+01,9.278771e-01,3.461383e+00,5.526492e+00,-3.759882e-01,2.342451e+00,-5.133658e+00,-9.254298e+00,-9.086440e+00,-8.068985e+00,-6.355381e+00,-3.659395e+00,-2.755443e+00,-3.018280e+00,8.658731e-01,-9.475525e+00,-7.953132e+00,-2.301927e+00,1.495296e+00,-1.034920e-02,9.900430e-01,1.699455e+00,5.558517e+00,-2.893386e+00,-4.585700e-01,3.045793e+00,4.802736e+00,4.317701e+00,3.708087e+00,3.583067e+00,7.085617e+00,1.630963e+00,4.180247e+00,-2.476400e+00,-3.316559e-01,-8.067369e-02,2.645824e+00,-4.828407e+00,-3.407135e+00,-3.691539e+00,-4.115879e+00,-1.524426e+00,-5.485620e+00,-1.888195e+00,-5.592428e+00,-4.177959e+00,-4.353439e+00,8.652401e-02,-4.315725e+00,-3.259809e-01,-2.578893e+00,4.348198e+00,-1.865358e+00,7.707006e+00,-7.229059e+00,-7.891140e-01,3.273721e+00,3.345577e+00,5.926484e+00,1.680734e+00,8.752197e+00,-3.628231e+00,-2.016345e+00,-4.795283e+00,-3.416097e+00,-8.554766e-01,4.297341e+00,-5.476586e+00,-8.740908e+00,-4.519143e+00,3.656399e+00,-6.767274e+00,2.185883e+00,-1.271312e+01,-7.425039e+00,-1.898035e+00,-6.420067e+00,-3.487702e+00,-7.622493e+00,-7.455156e+00,-7.521992e+00,-8.949340e+00,-6.178615e+00,-2.238676e+00,-2.216196e-02,2.540657e-01,5.817611e-01,1.233799e+00,4.659942e+00,1.742975e+00,4.491173e+00,-6.242085e-02,2.162283e+00,2.390589e+00,2.270044e+00,2.925584e+00,5.248821e+00,-4.485489e-01,-3.621684e-01,-1.039660e+00,-1.565421e+00,3.397826e+00,-7.554709e+00,-6.108341e+00,-4.494994e+00,-4.481960e+00,-4.601991e+00,1.812808e+00,-1.004617e+01,-7.760502e+00,-4.335539e+00,-2.617726e+00,-2.451528e+00,-1.213174e+00,3.822376e+00,-3.413785e+00,2.077367e-01,3.436162e+00,1.889553e+00,5.327223e+00,3.060010e+00,8.690533e+00,3.237209e+00,8.115611e+00,3.613850e+00,5.926244e+00,5.598866e+00,5.123428e+00,1.002048e+01,3.471590e-01,2.700254e+00,4.065674e+00,-5.893447e+00,-4.585047e+00,-8.590233e+00,-8.301361e+00,-7.066884e+00,-5.380998e+00,-3.111181e+00,2.263552e+00,-3.596949e+00,2.247651e+00,-4.867663e+00,-5.088776e+00,-1.283456e+00,9.087525e-01,2.915421e+00,1.297741e+00,5.406855e+00,2.790192e+00,4.428863e+00,7.456636e+00,9.393411e-01,4.873999e+00,5.774713e+00,5.887789e+00,8.030748e+00,5.339474e+00,5.367786e+00,9.897496e+00,3.301664e+00,3.735226e+00,3.410464e+00,2.166924e+00,1.590505e+00,1.786104e+00,3.162147e+00,-1.196460e+00,2.301453e+00,-2.108517e+00,-6.517141e-01,1.089655e+00,-6.282749e+00,-2.289119e+00,1.382488e+00,-1.058854e+00,5.491041e+00,-3.304104e+00,7.369868e-01,7.840729e+00,1.725058e+00,3.908738e+00,5.911169e+00,1.114499e+01,3.932883e+00,8.419188e+00,1.877122e+00,5.295605e+00,1.226888e+01,1.356630e-01,1.731529e+00,-5.475836e-01,3.054080e+00,3.321016e+00,1.023294e+01,-6.446784e+00,-7.175590e+00,-2.066361e+00,6.338112e+00,-3.172463e+00,-8.622950e-01,4.311271e-01,-6.701124e+00,-1.053695e+01,-1.012225e+01,-9.166404e+00,-7.286685e+00,-4.845656e+00,-1.661584e+00,-3.600911e-01,5.797704e+00,-3.282555e+00,-6.264013e+00,-5.176600e+00,1.056209e+00,4.407905e+00,6.457607e+00,3.084629e-01,3.701928e+00,9.227346e+00,8.841958e-01,-7.115450e-01,8.559940e-01,2.526963e+00,2.260830e+00,7.793076e+00,-4.558526e+00,-1.131268e+00,2.887424e+00,-2.554131e+00,-2.642254e+00,-3.295443e+00,-1.170787e+00,-8.096900e+00,-5.133720e+00,4.695086e-01,-5.661389e+00,-4.328758e+00,-3.522894e+00,-3.579012e+00,-2.562174e+00,1.842072e+00,-4.554552e+00,-1.468395e+00,3.844758e+00,-4.351156e-01,3.582107e+00,1.148735e+00,8.017972e+00,1.058334e+00,2.938989e+00,5.151228e+00,2.047822e+00,2.391493e+00,2.681445e+00,3.384014e+00,-2.176133e+00,-4.809705e-01,-7.469478e-01,-1.126752e+00,1.200286e+00,-1.088248e+01,-5.867685e+00,-3.315961e+00,-4.328079e+00,1.534019e+00,-7.495574e+00,-4.790119e+00,-3.137820e+00,-9.244462e+00,-1.153646e+01,-5.934209e+00,-1.798164e+00,-6.373047e+00,-6.464004e+00,-2.407359e+00,1.900240e-01,3.106317e+00,-5.890182e+00,-1.890541e-01,1.985605e+00,1.958562e+00,5.326412e+00,-2.999686e+00,1.302599e+00,6.446396e+00,-1.016666e+00,8.807465e-01,7.810626e-01,4.631426e-01,2.094718e+00,-1.864099e+00,5.387469e+00,-4.945830e+00,-1.974363e+00,1.698756e+00,-5.736372e+00,-4.568332e+00,-3.275522e+00,2.487094e+00,-1.267284e+01,-1.191886e+01,-1.054558e+01,-4.947849e+00,-1.049287e+00,-4.876394e+00,-4.452649e+00,-4.380173e+00,-6.128390e+00,-3.434424e+00,-6.841040e-01,2.056779e+00,2.950123e+00,3.437593e+00,3.944674e+00,1.027545e+01,-1.690161e+00,2.619744e+00,3.462770e+00,3.503279e+00,2.459893e+00,4.337664e+00,-2.770677e+00,-6.329858e+00,-1.819865e+00,1.630810e+00,-2.148273e+00,4.833362e+00,-4.533105e+00,-1.911111e+00,-2.170491e-01,-7.974401e+00,-3.893774e+00,-2.760214e+00,2.207911e+00,-4.716363e+00,-4.793289e+00,-9.369737e-01,4.153677e+00,5.926641e-01,3.736440e+00,9.361591e+00,2.120452e+00,4.930918e+00,9.890796e+00,4.254038e+00,1.030653e+01,2.488759e+00,1.485006e+00,-2.516883e+00,3.029475e+00,1.146018e+01,2.369584e+00,7.274252e+00,1.988129e+00,1.884471e+00,3.221102e+00,-2.159980e+00,-3.264572e+00,-4.724474e+00,-8.466518e+00,-3.304607e+00,-9.801509e-01,-1.540431e+00,-1.835106e+00,-1.583540e+00,-1.180696e+00,2.589600e+00,-5.966352e+00,-3.269874e+00,7.848535e-01,3.470388e+00,3.749762e+00,3.997175e+00,5.976509e+00,1.091749e+01,4.248839e+00,7.869757e+00,3.455644e+00,5.759750e+00,9.521048e+00,-1.111651e+00,-2.109246e-01,1.269415e+00,3.703149e+00,4.258953e+00,2.980939e+00,3.101134e+00,4.335206e+00,-5.418412e+00,-1.462204e+00,5.094946e+00,-2.898238e+00,4.561870e-01,-5.644275e+00,-2.847402e+00,3.764989e-01,-2.562102e+00,5.080153e+00,-7.720397e+00,-2.079876e+00,2.282453e-01,3.011075e+00,8.632444e-01,2.132078e+00,5.832392e+00,-2.222342e+00,3.273821e-01,3.782023e+00,5.284371e+00,4.953221e+00,8.259699e+00,4.070706e+00,9.326223e+00,2.978834e+00,7.736489e+00,1.901825e+00,4.847998e+00,7.019281e-01,2.391974e+00,-3.250329e+00,-1.722332e+00,1.977207e+00,-3.519586e+00,-3.356305e+00,-8.969471e-01,-4.498320e+00,-3.825524e+00,-4.209808e+00,-1.405079e+00,-4.107338e+00,-3.052553e+00,-1.748484e+00,3.381100e-01,-1.775294e+00,-5.490123e-01,5.825654e-01,7.973190e-01,7.930127e+00,-3.695085e+00,1.338746e+00,2.882912e+00,6.504758e+00,2.273294e+00,4.215380e+00,7.245326e+00,-1.007238e+00,1.130627e+00,8.073280e+00,-1.685903e+00,4.604940e+00,-5.022924e+00,-8.054077e+00,-4.124279e+00,-3.538876e+00,3.753963e-01,-8.064327e+00,-9.418044e+00,-6.236868e+00,1.443426e+00,-7.456392e+00,-3.857160e-01,-8.458382e+00,-5.068573e+00,-3.462200e+00,2.000132e-01,-9.537023e+00,-7.546799e+00,-4.773333e+00,-8.559621e-01,4.723828e+00,2.032870e-01,1.514435e+00,5.703949e+00,-7.246697e-02,1.890209e+00,3.965699e+00,-3.049260e-01,1.244561e+00,1.025229e+00,2.588657e+00,-5.322495e-01,-9.046590e-01,-1.572589e+00,-1.968014e+00,-3.141460e+00,-3.708581e+00,-3.898188e+00,-4.830935e+00,-5.018469e+00,-1.726023e+00,-6.080853e+00,-3.800891e+00,3.839269e-01,-5.731218e+00,-3.881247e+00,1.327273e+00,-3.640770e+00,1.824551e+00,-8.984993e+00,-7.865743e+00,-1.354982e+00,6.779272e+00,-1.924384e+00,1.887506e+00,4.094328e+00,6.464428e+00,-2.648631e+00,-6.682279e-01,-4.229022e+00,1.054257e+00,6.963557e+00,-1.088865e+00,8.142085e-01,6.369389e+00,-1.387420e+00,9.573989e-01,-3.882658e+00,-4.613014e+00,-3.104323e+00,-3.213070e+00,-7.538605e-02,-1.034085e+01,-5.114683e+00,-2.994660e+00,-3.199720e+00,-2.532481e+00,-6.094270e-01,-9.751809e-02,4.474459e+00,-3.730190e+00,2.410816e-01,2.473461e+00,4.329476e+00,8.915911e-01,1.430014e+00,1.733914e+00,4.471532e+00,8.941004e+00,-2.927467e+00,3.047748e+00,6.870209e+00,6.549933e+00,6.099756e+00,5.537866e+00,4.885752e+00,1.008197e+01,-6.316843e+00,-6.829699e+00,-7.088827e+00,-6.840211e+00,-5.606873e+00,-4.068197e+00,-4.799823e+00,-5.787579e+00,-8.591074e+00,-6.828503e+00,-4.573239e+00,-4.865119e+00,-1.312562e+00,5.342308e-01,7.461294e-01,5.136231e+00,-6.046855e+00,7.401849e-01,5.479329e+00,1.206983e+01,2.876572e+00,1.280567e+01,3.947235e+00,1.187684e+01,2.045311e+00,-1.896601e+00,-1.945939e+00,-1.958020e+00,-1.737388e+00,-9.024301e-01,3.952200e-01,2.457173e+00,4.337519e+00,-1.660480e+00,-3.230034e+00,-6.746170e+00,-5.780174e+00,-2.193194e+00,1.736737e+00,-2.546778e+00,-1.002184e+00,-1.456454e+00,1.954761e+00,-9.518210e+00,-3.133641e+00,1.204522e+00,6.782241e+00,-4.824035e+00]
  2. title = 'Task add_rand'
  3. interval = 1e-5
  4. xlabel = 't'