ASPL Operations Guide v 1.00
© 2025 Bassem W. Jamaleddine
2. 16xsimilarity calculates the xsimilarities of one or more set variables
![]()
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
xsimilarity displays the similarities between your set variables in an extended view. Use the xsimilarity or xsim commands to compare the similarities between your set variables. This command is similar to the similarity command, yet it prints more details about the patterns being compared between the different sets. For more information about this command see similarity command.
xsimilarity EXAMPLE1The footprint of a directory have been collected by assigning it to a set variable a1. Some systemic activities occured in 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 OPERATION1Start aspl by loading the WS1 workspace
# aspl WS1
display the symbol table
① aspl>
vYou 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 a3show the xsimilarity based on their status attributes
③ aspl>
xsim`z a1 a2 a3show the xsimilarity based on their checksums
④ aspl>
xsim`c a1 a2 a3show 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:
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