Short matlab scripts to demonstrate eigenvalue corrections
on a similarity (dissimilarity matrix).

Data:
	- protein.mat (Indefinite similarity matrix from protein sequences).
	  The Protein data set has sequence-alignment similarities for 213 proteins
	  from 4 classes, where class one through four contains 72, 72, 39, and 30 points, respectively
   	  The signature is (170, 40, 3). The data are taken from original work published in
	  Thomas Hofmann and Joachim M. Buhmann. Pairwise data clustering by deterministic annealing. 
   	  IEEE Trans. Pattern Anal. Mach. Intell., 19(1):1–14, 1997.
	
    - chromosom.mat (Indefinite dissimilarity matrix from chromosom shape measures).
	  The Copenhagen Chromosomes data constitute a benchmark from cytogenetics. 
	   4,200 human chromosomes from 21 classes are represented by grey-valued
	   images. These are transferred to strings measuring the thickness of their silhouettes. An
	   example pattern representing a chromosome has the form
	   1133244422233332332222333223323332222666222331111 .
	   The string indicates the thickness of the gray levels of the image. These strings can
	   be directly compared using the edit distance based on the differences of the numbers
	   and insertion/deletion costs 4.5. The obtained proximity matrix has a signature
	   of (2258, 1899, 43). The classification problem is to label the data according to the
	   chromosome type. The data are taken from
	   M. Neuhaus and H. Bunke. Edit distance based kernel functions for structural
	   pattern classification. Pattern Recognition, 39(10):1852–1863, 2006.

The input data are used in a (pre-processed) low-rank form to make sure that the model
assumptions hold. The rank is chosen such that a substantial amount of negative eigenvalues
is kept.

Code	
	1) call the example1.m and example2.m script to see how the eigenvalue correction is done in the various cases
	also for low rank nystroem approximated matrices. The used matrices have been preprocessed to be low rank to
	get valid results.

	* eig_ny.m                    - contains a Nystroem based eigenvalue decomposition also for indefinite kernels 
          it is exact if the number of independent landmarks matches the rank of the matrix (the rank
	  for the protein data is very high - so you will see some approximation error)
	* DisNystroemExactKernelPtr.m - contains a DoubleCentering (dissimilarities to similarities for
	  Nystroem approximated matrices with (optional) eigenvalue correction
	* DoubleCentering.m - classical double centering


References / Credit
- the nystroem based double centering with exact eigenvalue correction is due to
	@inproceedings{DBLP:conf/simbad/SchleifG13,
	  author    = {Frank{-}Michael Schleif and
		       Andrej Gisbrecht},
	  title     = {Data Analysis of (Non-)Metric Proximities at Linear Costs},
	  booktitle = {Similarity-Based Pattern Recognition - Second International Workshop,
		       {SIMBAD} 2013, York, UK, July 3-5, 2013. Proceedings},
	  pages     = {59--74},
	  year      = {2013},
	  crossref  = {DBLP:conf/simbad/2013},
	  url       = {http://dx.doi.org/10.1007/978-3-642-39140-8_4},
	  doi       = {10.1007/978-3-642-39140-8_4},
	  timestamp = {Mon, 01 Jul 2013 21:22:32 +0200},
	  biburl    = {http://dblp.uni-trier.de/rec/bib/conf/simbad/SchleifG13},
	  bibsource = {dblp computer science bibliography, http://dblp.org}
	}
	@proceedings{DBLP:conf/simbad/2013,
	  editor    = {Edwin R. Hancock and
		       Marcello Pelillo},
	  title     = {Similarity-Based Pattern Recognition - Second International Workshop,
		       {SIMBAD} 2013, York, UK, July 3-5, 2013. Proceedings},
	  series    = {Lecture Notes in Computer Science},
	  volume    = {7953},
	  publisher = {Springer},
	  year      = {2013},
	  url       = {http://dx.doi.org/10.1007/978-3-642-39140-8},
	  doi       = {10.1007/978-3-642-39140-8},
	  isbn      = {978-3-642-39139-2},
	  timestamp = {Mon, 01 Jul 2013 21:20:12 +0200},
	  biburl    = {http://dblp.uni-trier.de/rec/bib/conf/simbad/2013},
	  bibsource = {dblp computer science bibliography, http://dblp.org}
	}

	detailed in 

	@article{DBLP:journals/corr/GisbrechtS14,
	  author    = {Andrej Gisbrecht and
		       Frank{-}Michael Schleif},
	  title     = {Metric and non-metric proximity transformations at linear costs},
	  journal   = {Neurocomputing},
	  year      = {2015},
	  url       = {http://arxiv.org/abs/1411.1646},
	  pages     = {accepted}
	}
