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


3. 17
   asimilarity calculates the similarities of one or more binned set variables

 

logo

asimilarity a1 [a2 .. aN]       where a1 [a2 .. aN] are binned set variables

A predicate can be used by ticking the similarity operation:

asimilarity`ffl a1 [a2 .. aN]

asimilarity`fflc a1 [a2 .. aN]

asimilarity`c a1 [a2 .. aN]

cosvar = asimilarity a1 [a2 .. aN] where cosvar is the COS variable

asimilarity

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

asimilarity  cosStruc  1*          ins:H_H_AH  ret:cosStruc

●  Operator asimilarity calculates the similarities of one or more binned set variables

Use the asimilarity operator to compare one or many binned set variables. This operator is setadic (it comes first on the line) then it is followed by one or more binned set variables. This operator is tickable with a predicate shown in the table below.

 

asimilarity EXAMPLE
In this example we start ASPL loading the sample workspace WS1. The binned set variables are saved in the augmented symbol table. We use the asimilarity operator to compare the binned variables aa1, aa2, and aa3.

 

asimilarity OPERATION

aspl WS1
    (start ASPL loading the sample workspace WS1)

①  aspl> av
    (print the augment symbol table)

②  aspl> asimilarity aa1 aa2 aa3
    (show the asimilarity between aa1, aa2, and aa3)

③  aspl> asimilarity`c aa1 aa2 aa3
    (show the asimilarity between aa1, aa2, and aa3 considering the checksum attribute)

④  aspl> simi123 = asimilarity`c aa1 aa2 aa3
    (assign to the COS variable simi123 the similarity result)

⑤  aspl> cos
    (print the COS symbol table)

 

● Tickable Predicates for asimilarity

The asimilarity is tickable with predicates that are shown in the following table:

       a yellow note
asimilarity`_  asimilarity on the aggregated element containment names 
asimilarity`ffl  asimilarity on the aggregated element containment names 
asimilarity`f  asimilarity on the aggregated element names 
asimilarity`c  asimilarity on the aggregated checksums of the named elements 
asimilarity`z  asimilarity on the aggregated zsums of the named elements 
asimilarity`fflz  asimilarity on the aggregated element containment names AND their zsums 
asimilarity`dosi  asimilarity on the aggregated document similarities of the named elements 
asimilarity`h  asimilarity on the aggregated entropies of the named elements 
asimilarity`c  asimilarity on the aggregated checksums of the named elements 
asimilarity`fc  asimilarity on the aggregated named elements AND their checksums 
asimilarity`fflc  asimilarity on the aggregated element containment names AND their checksums 
asimilarity`fflmtm  asimilarity on the aggregated element containment names AND their make time 
asimilarity`mtm  asimilarity on the aggregated make times of the named elements 
asimilarity`fmtm  asimilarity on the aggregated named elements AND their make times 
asimilarity`d  asimilarity on the aggregated containment subgroups 
asimilarity`dmtm  asimilarity on the aggregated containment subgroups AND the make times of the subgroups 
(C)2024 ASPL Inc.