Skip to main content
. 2021 Apr 2;21(7):2456. doi: 10.3390/s21072456
Algorithm 2 Authentication
Input:

  D: The dimension of the vector.

  L: The number of core objects.

  Ω: The set of core objects {Ω(1),Ω(2),,Ω(L)}

  ϵ: The parameter of One-Class DBSCAN, which means that the distance is ϵ.

  v: The vector of the new sample.

Function:
  • 1:

    forj=1,2,,Ddo

  • 2:

    vj=vj/kDvk

  • 3:

    end for

  • 4:

    fori=1,2,,Ldo

  • 5:

    dis=Ω(i)v2

  • 6:

    if disϵ then

  • 7:

      return True

  • 8:

    end if

  • 9:

    end for

  • 10:

    return False

Output:

  True or False: Whether the new sample belongs to this class