ASPL Manual v 1.00
© 2024 by SetSphere.COM


6. 2
   xsimilarity calculates the xsimilarities of one or more set variables

 

logo

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

xsimilarity`fflc a1 [a2 .. aN]

xsimilarity

When specified by itself then get the xsimilarity between the two objects on top of the answer stack

xsimilarity  cosStruc  1*          ins:H_H_H  ret:cosStruc

●  Operator xsimilarity displays the extended similarities of one or more set variables

 

xsimilarity EXAMPLE1

The footprint of a directory have been collected by assigning it to a set variable a1. Some systemic activities occured on the system that may have perturbed the state of the files within that directory. Consequently, another footprint is collected and assigned to a set variable a2.

In this example we will start ASPL by loading WS1 workspace and show some useful tips on how to display the extended similarity between the set variables a1, a2, and a3.

 

xsimilarity OPERATION1

Start aspl by loading the WS1 workspace

aspl WS1

display the symbol table

①  aspl> v

You can tick the xsimilarity command with a conditional predicate to get a selective similarity comparison based on that predicate. For example, the following commands will get the similarities between variables a1, a2, and a3 based on their modification time, status attributes, checksum respectively, and entropy:

show the xsimilarity based on their modification time

②  aspl> xsim`mtm a1 a2 a3

show the xsimilarity based on their status attributes

③  aspl> xsim`z a1 a2 a3

show the xsimilarity based on their checksums

④  aspl> xsim`c a1 a2 a3

show the xsimilarity based on their entropies

⑤  aspl> xsim`h a1 a2 a3

 

● Tickable Predicates for xsimilarity

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

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