Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8689255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:35:59+00:00 2026-06-12T23:35:59+00:00

i need to implement a project with visual intimacy between persons,can anyone recommends an

  • 0

i need to implement a project with visual intimacy between persons,can anyone recommends an algorithm for person’s intimacy in phone contact?

intimacy attenuate over time(the intimacy attenuates automatically if you havnt click/dial it for a long time).

Assume in my address book:

Person     Intimacy(0-100%)
   A         40%
   B         80%
   C         10%

A’s intimacy needs raise after i call A ,like this

Person     Intimacy(0-100%)
   A         42%
   B         80%
   C         10%

nothing happens after follow 5 days, A,B,C’s intimacy need decline,like this

Person     Intimacy(0-100%)
   A         37%
   B         78%
   C         8%

thanks for everyone’s answer

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:36:01+00:00Added an answer on June 12, 2026 at 11:36 pm

    intimacy attenuate over time(the intimacy attenuates automatically if you havnt click/dial it for a long time).

    You could use an exponential decaying number expressed as a Half Life

    double intimacy = Math.pow(0.5, time / halfLife);
    

    I would be surprised if there is a standard solution to your problem.


    A typical graph has a shape like this.

    enter image description here


    Are you asking for an algorithm to determine how well you know someone in your address book based on how often you call them?

    For this you could use an Exponential Weighted Moving Average Again, I just speculating what might be useful.

    could you express more detail?

    From the data you gave, the half life is about 28 days. You can use the EWMA on a daily basis like this

    double alpha = 1.0/28;
    
    score = (contacted ? 1 : 0) * alpha + score * (1 - alpha); 
    

    e.g.

    contacted, prev score, score
    TRUE        40%     42%
    FALSE       42%     41%
    FALSE       41%     39%
    FALSE       39%     38%
    FALSE       38%     36%
    FALSE       36%     35%
    

    Say the decay is 28 days and I call the same person for 200 days. The score looks like

    double score = 0;
    double alpha = 1.0 / 28;
    boolean contacted = true;
    for (int i = 0; i < 200; i++) {
        score = (contacted ? 1 : 0) * alpha + score * (1 - alpha);
        System.out.printf("%.3f%n", score);
    }    
    

    prints

    0.036
    0.070
    0.103
    ... deleted ...
    0.999
    0.999
    0.999
    

    Its not possible for the score to larger than the maximum value (in this case the 1 in the equation).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to implement a genetic algorithm customized for my problem (college project), and
I need to implement for current project some secure login in php. I wrote
I need to implement Online Help in my Java Web Project. For Example User
I am currently working on a project where I need to implement a parallel
I am working on one project where there is a functionality need to implement
To implement github like fork/pull request function in my project, the auto-merge feature need
I need to implement in my project ASP .NET MVC3 the jQuery file upload
I'm working on an image processing project (Image Steganography), where I need to implement
I need to implement a project that will consume XML Web Service from other
I need to implement several application-level behavior in a project I'm currently working on.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.