Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dweidele on github.
  • I am dweidele (https://keybase.io/dweidele) on keybase.
  • I have a public key whose fingerprint is 1798 BDBE E77C 22FE 620C 5550 B9E5 BA8C 4F2B D5C0

To claim this, I am signing this object:

@dweidele
dweidele / JCrawly.java
Last active August 29, 2015 14:16
JCrawly: Simple Java Web Crawler
package de.unikn.algo.crawler;
import java.io.File;
import java.io.FileWriter;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.net.URLConnection;
import java.util.HashMap;
import java.util.HashSet;
@dweidele
dweidele / br.r
Last active April 27, 2017 07:32
Brainerd-Robinson Coefficient of Similarity in R
# function to load the observations
load = function() {
p <- read.csv("observations.csv")
rownames(p) <- p[,1]
p <- p[,c(2:6)]
return(p)
}
# function to compute the normalized Brainerd-Robinson similarity for observations x
BR <- function(x)
@dweidele
dweidele / Prokrustes.java
Last active October 12, 2016 19:21
Prokrustes: optimal affine transformation between two aligned 2D-point sets
package de.unikn.algo.nexus.exsite.impl.rendering.pointpatternmatching;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* This computes registration parameters for an optimal affine transformation
* between 2 matched point sets towards the least squared error.