Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Matching Problem

From   Raphael Fraser <>
Subject   st: Matching Problem
Date   Sat, 16 Oct 2010 02:56:44 -0400

I have two variables which I will call test and training each
containing integers between 1-200. Each number in the test variable
represents an image. The training variable contains the closest image
to the test image in terms of similarity.

test = (129, 163, 71, 176, 125, ...)
train = (128, 162, 71, 119, 123, ...)

The objective is to match both integers to the same interval. These
are the intervals 1-5, 6-10,11-15, ..., 196-200. For example, when
test=129 and train=128 are both in the same interval 125-130. Also
test=71,train=71 are both in the interval 70-75. These are successful
mappings. I would like a successful mapping to be =1 and failure=0.

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index