This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kurtosis(data_norm)-3 | |
kurtosis(data_beta)-3 | |
# <0 data is platycurtic | |
# = 0 data is normal | |
# >0 data is leptocurtic | |
########################################################## | |
# Results | |
# > kurtosis(data_norm)-3 | |
# [1] 0.2875478 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mpl_toolkits.mplot3d import axes3d | |
import matplotlib.pyplot as plt | |
import numpy as np | |
x = np.linspace(-4,4,10) | |
y = np.linspace(-4,4,10) | |
z = np.linspace(-4,4,10) | |
x,y,z = np.meshgrid(x,y,z) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy as sc | |
plt.style.use("dark_background") | |
fs = 1000 | |
# Time | |
t = np.linspace(0,1.5-1/fs,1500) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy as sc | |
plt.style.use('ggplot') | |
np.random.seed(20) | |
#------------------------------------------------------------------------------- | |
# Set up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Fourier transform calculation | |
%------------------------------------------------------- | |
% Declare symbols to use | |
syms x t; | |
% Parameters of the transform | |
a = 300; %scaling | |
b = 0; %shifting | |
c = 0; %smoothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Loading wav file | |
[ip fs] = wavread('B.wav'); | |
% B tone | |
B = ip; | |
% Play the recording | |
sound(B,fs); | |
% Plot the recording |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Loading wav file | |
[ip, fs] = wavread('B.wav'); | |
% Spectogram | |
specgram(ip) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
plt.style.use("ggplot") | |
# Setup | |
x_ = np.linspace(-20,20,10000) | |
T = 8 | |
armonics = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Line integral calculation % | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Variable definition for symbolic calculations | |
syms t; | |
% Parametric curve | |
x = @(t) t; | |
y = @(t) sqrt(t); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.util.Random; | |
public class GuessNumberMain | |
{ | |
public static void main(String[] args) | |
{ | |
System.out.println("Guess the number beween 0 and 99"); | |
Scanner reader = new Scanner(System.in); | |
int number = reader.nextInt(); |