From beed168178844d1429eb8fb262ad420c6d2bf4b5 Mon Sep 17 00:00:00 2001 From: tama3 Date: Thu, 31 May 2007 15:30:48 +0000 Subject: [PATCH] fixed spell miss git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/stigmata/trunk@119 acee48c3-7b26-0410-bdac-b3d0e5314bbc --- .../birthmarks/comparators/DPMatchingBirthmarkComparator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/jp/naist/se/stigmata/birthmarks/comparators/DPMatchingBirthmarkComparator.java b/src/main/java/jp/naist/se/stigmata/birthmarks/comparators/DPMatchingBirthmarkComparator.java index cd857e1..f5d1020 100755 --- a/src/main/java/jp/naist/se/stigmata/birthmarks/comparators/DPMatchingBirthmarkComparator.java +++ b/src/main/java/jp/naist/se/stigmata/birthmarks/comparators/DPMatchingBirthmarkComparator.java @@ -59,7 +59,7 @@ public class DPMatchingBirthmarkComparator implements BirthmarkComparator{ BirthmarkElement[] element1 = b1.getElements(); BirthmarkElement[] element2 = b2.getElements(); if(element1.length > 0 && element2.length > 0){ - int[][] cost = createCostMatrics(element1, element2); + int[][] cost = createCostMatrix(element1, element2); int max = (element1.length + element2.length) * (getMismatchPenalty() + getShiftPenalty()); int distance = cost[element1.length - 1][element2.length - 1]; @@ -78,8 +78,8 @@ public class DPMatchingBirthmarkComparator implements BirthmarkComparator{ return b1.getElementCount() + b2.getElementCount(); } - private int[][] createCostMatrics(BirthmarkElement[] targetX, BirthmarkElement[] targetY){ - int[][] mismatches = getMismatchMatrics(targetX, targetY); + private int[][] createCostMatrix(BirthmarkElement[] targetX, BirthmarkElement[] targetY){ + int[][] mismatches = getMismatchMatrix(targetX, targetY); int[][] cost = new int[targetX.length][targetY.length]; cost[0][0] = mismatches[0][0] * getMismatchPenalty(); @@ -110,7 +110,7 @@ public class DPMatchingBirthmarkComparator implements BirthmarkComparator{ return cost; } - private int[][] getMismatchMatrics(BirthmarkElement[] targetX, BirthmarkElement[] targetY){ + private int[][] getMismatchMatrix(BirthmarkElement[] targetX, BirthmarkElement[] targetY){ int[][] mismatches = new int[targetX.length][targetY.length]; for(int i = 0; i < mismatches.length; i++){ -- 2.11.0