Comparison model of two array order rates

Source: Internet
Author: User

Current model (for a specific articleArticleThe two most similar collection of articles): the overlap of the Set (the elements repeated in the two sets) + the order rate of the coincidence data.

For the definition of the order rate, the {1 2 3 4 5} set is correct and ordered, but {2 3 1 4 5} is incorrect. Its order rate: for 2, the distribution of three of the remaining four numbers is correct (3, 4, 5 are distributed on the Right of 2, correct; but the position of 1 is wrong, it should be on the left of 2 ), the order rate is 3/4, 3/4 for 3, 2/4 for 1, 4/4 for 4, and 4/4 for 5, so the overall order rate is (3/4 + 3/4 + 2/4 + 1 + 1)/4 = 0.8

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.