Skip to content

Commit

Permalink
Release new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Milvus-doc-bot authored and Milvus-doc-bot committed Dec 4, 2023
1 parent fafddd8 commit f3372ee
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
Binary file modified v2.3.x/assets/substructure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified v2.3.x/assets/superstructure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions v2.3.x/site/en/reference/metric.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,34 @@ For example, suppose there are two strings, 1101 1001 and 1001 1101.

11011001 ⊕ 10011101 = 01000100. Since, this contains two 1s, the Hamming distance, d (11011001, 10011101) = 2.

### Structural Similarity

When a chemical structure occurs as a part of a larger chemical structure, the former is called a substructure and the latter is called a superstructure. For example, ethanol is a substructure of acetic acid, and acetic acid is a superstructure of ethanol.

Structural similarity is used to determine whether two chemical formulae are similar to each other in that one is the superstructure or substructure of the other.

To determine whether A is a superstructure of B, use the following formula:

![superstructure](../../../assets/superstructure.png "Superstructure")

Where:

- A is the binary representation of a chemical formula to be retrieved
- B is the binary representation of a chemical formula in the database

Once it returns `0`, **A** is not a superstructure of **B**. Otherwise, the result is the other way around.

To determine whether A is a substructure of B, use the following formula:

![substructure](../../../assets/substructure.png "subsctructure")

Where:

- A is the binary representation of a chemical formula to be retrieved
- B is the binary representation of a chemical formula in the database

Once it returns `0`, **A** is not a substructure of **B**. Otherwise, the result is the other way around.

## FAQ

<details>
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "v2.2.x",
"version": "v2.3.x",
"released": "yes"
}

0 comments on commit f3372ee

Please sign in to comment.