• 大小: 191KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-10
  • 语言: Matlab
  • 标签: 流形  matlab  

资源简介

This is a dimension reduction toolbox developed by Laurens van der Maaten(MISS). You are free to use, modify, or redistribute this software in any way you want, but only for non-commercial purposes. This Matlab toolbox implements 32 techniques for dimensionality reduction. These techniques are all available through the COMPUTE_MAPPING function.

资源截图

代码片段和文件信息

function [Dnn_list] = compute_nn_distance(Xnbr_nn options)

% compute_nn_distance - compute the distance to the nearest neighbors
%
%   [Dnn_list] = compute_nn_distance(Xnbr_nn options);
%
% X is a (dn) set of n points in R^d
% nbr_nn is the number of nearest neighbors to retrieve
%
% D is a (nnbr_nn) matrix of distance D(ij) is distance between point
%   X(:i) and point X(nn_list(ij):)
% nn_list(i:) is the set of nearst neighbors
%
%   options.use_nntools = 0 force the use of the slow matlab code
%       for nearest neighbors computations.
%
%   options.exlude_self = 1 to avoid taking a point it self neighbor.
%
%   Copyright (c) 2006 Gabriel Peyr?

options.null = 0;

if isfield(options ‘use_nntools‘)
    use_nntools = options.use_nntools;
else
    use_nntools = 1;
end
if isfield(options ‘exlude_self‘)
    exlude_self = options.exlude_self;
else
    exlude_self = 0;
end

if nargin<2
    nbr_nn = size(X2);
end

if exlude_self==1
    nbr_nn = nbr_nn + 1;
end

nbr_nn = min(nbr_nnsize(X2));

if exist(‘nn_prepare‘)>0 && use_nntools
    % use fast mex code
    atria = nn_prepare(X‘);
    [nn_listD] = nn_search(X‘ atria X‘ nbr_nn 0);
else
    % use slow matlab code
    D1 = sqrt( compute_distance_matrix(X) );
    % find closest points
    [Dnn_list] = sort(D1);
    D = D(1:nbr_nn:)‘;
    nn_list = nn_list(1:nbr_nn:)‘;
end

if exlude_self==1
% remove self reference
nn_list = nn_list(:2:end);
D = D(:2:end);
end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1518  2006-09-08 19:11  toolbox_dimreduc\compute_nn_distance.m

     文件       1664  2006-09-08 19:14  toolbox_dimreduc\compute_nn_graph.m

     文件      57344  2004-05-03 01:01  toolbox_dimreduc\dijkstra_fast.dll

     文件       5717  2005-10-10 02:42  toolbox_dimreduc\hlle.m

     文件       3950  2006-05-05 18:26  toolbox_dimreduc\isomap.m

     文件       7393  2006-09-08 20:53  toolbox_dimreduc\leigs.m

     文件       2477  2006-09-08 19:20  toolbox_dimreduc\lle.m

     文件       5834  2006-04-10 23:28  toolbox_dimreduc\load_images_dataset.m

     文件       4267  2006-02-05 01:40  toolbox_dimreduc\load_points_set.m

     文件       1903  2006-08-24 20:50  toolbox_dimreduc\load_subimages_dataset.m

     文件       2653  2006-09-08 20:39  toolbox_dimreduc\ltsa.m

     文件     120320  2001-01-16 13:09  toolbox_dimreduc\nn_prepare.dll

     文件       1645  2002-01-17 13:04  toolbox_dimreduc\nn_prepare.m

     文件     128512  2001-01-16 13:09  toolbox_dimreduc\nn_search.dll

     文件       1984  2002-01-17 13:04  toolbox_dimreduc\nn_search.m

     文件       7182  2006-08-28 02:41  toolbox_dimreduc\pca.m

     文件       1523  2006-08-14 00:20  toolbox_dimreduc\perform_dimreduc_interpolation.m

     文件       1254  2006-08-13 20:55  toolbox_dimreduc\perform_geodesic_embedding.m

     文件       2092  2006-08-28 15:27  toolbox_dimreduc\perform_local_pca.m

     文件       1392  2006-08-13 21:54  toolbox_dimreduc\plot_flattened_dataset.m

     文件     129024  2001-01-16 13:09  toolbox_dimreduc\range_search.dll

     文件       1920  2002-01-17 13:04  toolbox_dimreduc\range_search.m

     文件       2505  2006-09-08 21:11  toolbox_dimreduc\readme.txt

     文件        793  2006-09-08 21:10  toolbox_dimreduc\test_datasets.m

     文件       1464  2006-09-08 21:05  toolbox_dimreduc\test_dimreduc.m

     文件        386  2005-10-11 02:26  toolbox_dimreduc\test_display_pointsets.m

     文件       1303  2006-09-08 21:07  toolbox_dimreduc\test_images.m

     文件       1105  2006-09-08 21:06  toolbox_dimreduc\test_isomap_landmarks.m

     文件        876  2006-08-13 21:02  toolbox_dimreduc\test_meshes.m

     文件        472  2006-09-08 19:06  toolbox_dimreduc\test_nearest_neighboors.m

............此处省略22个文件信息

评论

共有 条评论