Matlab
Andrés P. Guarín L.
andresguarinlo@gmail.com
Contenido
Matlab
Interpolación -
MeshFree MODELOS DIGITALES
DE TERRENO
MODELOS DIGITALES DE TERRENO
MDT
Un modelo es una representación simplificada de un
objeto de investigación, elaborado con la finalidad de
descripción, explicación, previsión o planificación
(Wegener, M. en Spatial Models and SIG, Londres, Taylor
and Francis, 2000, pp. 5)
VARIACIONES RBF
𝑅𝐵𝐹 𝑀𝑄: 𝜑 𝐶𝐾 = 𝜀2 + 𝑐2
𝑅𝐵𝐹 𝐶𝑈𝐵𝐼𝐶𝐴: 𝜑 𝐶𝐾 = 𝑐 3
donde CK=║ Z − z ║.
Fuente: Koc et al. (2003)
Resultados – Análisis de la función
de base Radial que mejor ajusta los
datos -
RBF Gausiana
RBF-MQ
RBF Cúbica
RBF-TPS
RESULTADOS – TIEMPO CPU, LA RAÍZ DEL ERROR
CUADRATICO MEDIO (RMSE) Y EL ERROR ABSOLUTO
MAXIMO (MAE).-
RESULTADOS – INTERPOLACIÓN RBF-GAUSIANA.-
RESULTADOS – ERRORES EN RBF-GAUSIANA.-
RESULTADOS – MEJOR METODO
SELECCIONADO APROXIMACIÓN POR
CSRBF.-
RESULTADOS – TIEMPO CPU, LA RAÍZ DEL ERROR
CUADRATICO MEDIO (RMSE) Y EL ERROR ABSOLUTO MAXIMO (MAE).-
RESULTADOS – TIEMPO CPU, LA RAÍZ DEL ERROR
CUADRATICO MEDIO (RMSE) Y EL ERROR ABSOLUTO MAXIMO (MAE).-
RESULTADOS – ERRORES DE APROXIMACION CON CSRBF.-
MODELO OBTENIDO
MODELO OBTENIDO
Matlab/SeudoCodigo
function Tab = Fig12yTab9
%% Aproximación RBF por Mínimos Cuadrados
% Importar datos
datos = xlsread('Datos.xlsx','Datos');
x = datos(:,[1 2]);
f = datos(:,3);
save('datos','x','f');
% Cargar datos
load datos.mat;
x1=x(x(:,2)>=4.554,:); %#ok<*NODEF>
f1=f(x(:,2)>=4.554);
x2=x1(x1(:,1)<=-75.8,:);
f2=f1(x1(:,1)<=-75.8);
x = x2;
f = f2;
clear x1 f1 x2 f2
Matlab/SeudoCodigo
% Definición de Centros
K = 60;
% Puntos observados
N = size(x,1);
% Puntos para evaluación
M = 250;
Y1 = linspace(min(x(:,1)),max(x(:,1)),M)';
Y2 = linspace(min(x(:,2)),max(x(:,2)),M)';
[y1 y2] = meshgrid(Y1,Y2);
y = [y1(:),y2(:)];
% Algoritmo
for j = 1:length(K),
% Presentación de Resultados
FigSDI([Y1 Y2],fe,[],['Fig12a'])
Tab(:,:,j) = [N' Kj t1 rmse1 mae1];
close all
Matlab/SeudoCodigo
function ge = RbfAprLS(c,x,f,y,RBF,e)
%% Aproximación RBF por Mínimos Cuadrados
% Norma Euclideana
z = EucNorm(x,c);
% Evaluación de la RBF.
ge = Phi*Delta;
GRACIAS