Skip to content

Instantly share code, notes, and snippets.

function D = dist( x,X )
[row,cloumn] = size(X)
D = zeros(row,1)
for j=1:row,
gap = x-X(j,:)
distance = sqrt(sum(gap.^2));
D(j)=distance
end
end
@saini
saini / elasticsearch.yml
Created July 25, 2012 16:51
elasticsearch.yml
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/reference/setup/installation.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,