SeComLib
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros Pages
test_data_row.h
Go to the documentation of this file.
1 /*
2 SeComLib
3 Copyright 2012-2013 TU Delft, Information Security & Privacy Lab (http://isplab.tudelft.nl/)
4 
5 Contributors:
6 Inald Lagendijk (R.L.Lagendijk@TUDelft.nl)
7 Mihai Todor (todormihai@gmail.com)
8 Thijs Veugen (P.J.M.Veugen@tudelft.nl)
9 Zekeriya Erkin (z.erkin@tudelft.nl)
10 
11 Licensed under the Apache License, Version 2.0 (the "License");
12 you may not use this file except in compliance with the License.
13 You may obtain a copy of the License at
14 
15 http://www.apache.org/licenses/LICENSE-2.0
16 
17 Unless required by applicable law or agreed to in writing, software
18 distributed under the License is distributed on an "AS IS" BASIS,
19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 See the License for the specific language governing permissions and
21 limitations under the License.
22 */
29 #ifndef TEST_DATA_ROW_HEADER_GUARD
30 #define TEST_DATA_ROW_HEADER_GUARD
31 
32 //include our headers
33 #include "secure_svm.h"
34 
35 namespace SeComLib {
36 namespace SecureRecommendations {
40  struct TestDataRow {
41  public:
44 
47 
50 
52  unsigned short clusterLabel;
53 
56  };
57 
58 }//namespace SecureRecommendations
59 }//namespace SeComLib
60 
61 #endif//TEST_DATA_ROW_HEADER_GUARD
std::vector< Paillier::Ciphertext > EncryptedVector
Define a vector template specialization for vectors of encrypted data.
Definition: secure_svm.h:62
Processed test data container.
Definition: test_data_row.h:40
SecureSvm::EncryptedVector x
Encrypted test data vector.
Definition: test_data_row.h:43
Definition of class SecureSvm.
SecureSvm::EncryptedVector xSquared
Encrypted squared test data vector.
Definition: test_data_row.h:49
unsigned short clusterLabel
The expected cluster (use this for accuracy measures)
Definition: test_data_row.h:52
char qualityOfLifeLabel
The quality of life measure (use this for accuracy measures)
Definition: test_data_row.h:55
SecureSvm::EncryptedVector xx
Encrypted vector product combinations, , stored as an unraveled upper triangular matrix.
Definition: test_data_row.h:46