1 //
2 //  KTCuboidHash.h
3 //  KTMatrix collection class cluster
4 //
5 //  Copyright (c) 2002 Chris Purcell. All rights reserved.
6 //
7 //  You may use this code for whatever purposes you wish.
8 //  This code comes with no warranties, implied or otherwise.
9 //  Using it may damage your data. It shouldn't, but save a copy first.
10 //  That's a good idea anyway, actually.
11 //
12 
13 #import "KTMatrix.h"
14 
15 @interface KTCuboidHash
16 : NSObject<KTLocationHash, KTLocationHashCoordinatesOptimization>
17 {
18     unsigned dimension;
19     const unsigned *upperBounds;
20     NSArray *labels; // cached for speedy access
21 }
22 
23 + (id)cuboidHash;
24 + (id)cuboidHashWithBounds:(NSArray *)bounds;
25 + (id)cuboidHashWithBoundsList:(unsigned)bound1 :(va_list *)bounds;
26 - (id)initWithDimension:(unsigned)axes
27                    data:(const unsigned *)data;
28 - (id)initWithBounds:(NSArray *)bounds;
29 - (id)initWithBoundsList:(unsigned)bound1 :(va_list *)bounds;
30 
31 @end
32