blob: 40e772b16e4c6e7c87ec06a83fda847cd4b8074e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
package de.lmu.ifi.dbs.elki.index.preprocessed.knn;
/*
This file is part of ELKI:
Environment for Developing KDD-Applications Supported by Index-Structures
Copyright (C) 2015
Ludwig-Maximilians-Universität München
Lehr- und Forschungseinheit für Datenbanksysteme
ELKI Development Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import java.util.EventListener;
/**
* Listener interface invoked when the k nearest neighbors (kNNs) of some
* objects have been changed due to insertion or removals of objects.
*
* @author Elke Achtert
*
* @apiviz.uses KNNChangeEvent oneway - -
*/
public interface KNNListener extends EventListener {
/**
* Invoked after kNNs have been updated, inserted or removed
* in some way.
*
* @param e the change event
*/
public void kNNsChanged(KNNChangeEvent e);
/**
* Existing objects have been removed and as a result existing kNNs have been
* removed and some kNNs have been changed.
*
* @param source the object responsible for the invocation
* @param removals the ids of the removed kNNs
* @param updates the ids of kNNs which have been changed due to the removals
*/
// public void kNNsRemoved(Object source, DBIDs removals, DBIDs updates);
}
|