ASPL Guide to Operations v 1.00
© 2024 by SetSphere.COM


4. 22
   yP gets the fuzzy-elements partition

 

logo

yP a1 [a2 .. aN]       where a1 [a2 .. aN] are set variables

yP`mtm~ a1 [a2 .. aN]

yP/mtm~ a1 [a2 .. aN]

yP

When specified by itself then the operation is performed on the object on top of the stack and the one that is one below it, then the result is pushed on the partition stack

tsetop  pasetoid  1**  notcommu        ins:H_H_H  ous:H_H_H_AH

●  Operator yP gets the fuzzy-elements partition

Use the operator yP or its equivalent y*P to get the partitions of datasets based on fuzzy matching of their elements.

 

yP EXAMPLE
In this example we will compare the files in two directories using the partition operator and by fuzzy matching their file names (or their elements).

 

yP OPERATION

aspl WS1
    (start ASPL loading the sample workspace WS1 )

①  aspl> yP a1 a2
    (show the partition of the datasets in a1 and a2 by fuzzy matching their elements)

The yP is the same as y*P

②  aspl> y*P a1 a2
    (show the partition of the datasets in a1 and a2 by fuzzy matching their elements)

③  aspl> yP`mtm~ a1 a2
    (show the partition of the datasets in a1 and a2 by fuzzy matching their elements whose mtimes are different)

 

● Tickable Predicates for yP

This yP is tickable with predicates that are shown in the following table:

       a yellow note
yP`_  gets the fuzzy-elements partition 
yP`c=  gets the fuzzy-elements partition such that they have the same checksum 
yP`c~  gets the fuzzy-elements partition such that they have different checksums 
yP`c~~  gets the fuzzy-elements partition such that they have all over different checksums 
yP`h=  gets the fuzzy-elements partition such that they have the same entropy 
yP`h~  gets the fuzzy-elements partition such that they have different entropies 
yP`h~~  gets the fuzzy-elements partition such that they have all over different entropies 
yP`mtm=  gets the fuzzy-elements partition such that they have the same make time 
yP`mtm~  gets the fuzzy-elements partition such that they have different make times 
yP`mtm~~  gets the fuzzy-elements partition such that they have all over different make times 
yP`ks=  gets the fuzzy-elements partition such that they have the same ksum 
yP`ks~  gets the fuzzy-elements partition such that they have different ksums 
yP`ks~~  gets the fuzzy-elements partition such that they have all over different ksums 
(C)2024 ASPL Inc.