Skip to content
Snippets Groups Projects
Commit 519a4296 authored by Manuel Günther's avatar Manuel Günther
Browse files

Added pure python function that got lost during porting.

parent 713e8842
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,22 @@ from ._old_library import *
from . import version
from .version import module as __version__
def ztnorm_same_value(vect_a, vect_b):
"""Computes the matrix of boolean D for the ZT-norm, which indicates where
the client ids of the T-Norm models and Z-Norm samples match.
vect_a An (ordered) list of client_id corresponding to the T-Norm models
vect_b An (ordered) list of client_id corresponding to the Z-Norm impostor samples
"""
import numpy
sameMatrix = numpy.ndarray((len(vect_a), len(vect_b)), 'bool')
for j in range(len(vect_a)):
for i in range(len(vect_b)):
sameMatrix[j, i] = (vect_a[j] == vect_b[i])
return sameMatrix
def get_config():
"""Returns a string containing the configuration information.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment