macrosea
V2EX  ›  问与答

拟合问题求解

  •  
  •   macrosea · Aug 20, 2020 · 1338 views
    This topic created in 2118 days ago, the information mentioned may be changed or developed.
    A 、B 两个矩形(大小不一定相等),A 中有 20 个点 a1, a2, a3, ......a20 ,B 中有 20 个点 b1, b2, b3, ......b20;
    A 中的点和 B 中的点有映射关系,即如果 a1 和 b1 重叠的话,其他对应点大致接近;
    现使用一种算法:移动 B 的位置使得 a1-b1, a2-b2, ....a20-b20 的距离和尽可能小,即 A 、B 中对应的点尽可能接近
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   913 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:22 · PVG 05:22 · LAX 14:22 · JFK 17:22
    ♥ Do have faith in what you're doing.