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 scipy import * | |
from scipy.linalg import norm, pinv | |
from matplotlib import pyplot as plt | |
import numpy as np | |
class RBF: | |
def __init__(self, indim, numCenters, outdim): | |
self.indim = indim |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# @Author: penghuailiang | |
# @Date : 2019/12/14 | |
import numpy as np | |
from scipy.fftpack import dct, idct | |
import matplotlib.pyplot as plt |
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 | |
from scipy.fftpack import fft, ifft | |
import matplotlib.pyplot as plt | |
x = np.linspace(0, 1, 800) | |
# 设置需要采样的信号,频率分量有80,190和300 | |
y = 7 * np.sin(2 * np.pi * 80 * x) + \ | |
2.8 * np.sin(2 * np.pi * 190 * x) + \ | |
5.1 * np.sin(2 * np.pi * 300 * x) |