Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to do rating & popularity

How to do rating & popularity

Scheduled Pinned Locked Moved ASP.NET
tutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    i am doing a shopping site where each product is rated 1 2 3 4 5 out of 5 user can click on the number to rate product. i want to know the logic for rating and popularity

    M 1 Reply Last reply
    0
    • A Anonymous

      i am doing a shopping site where each product is rated 1 2 3 4 5 out of 5 user can click on the number to rate product. i want to know the logic for rating and popularity

      M Offline
      M Offline
      MoustafaS
      wrote on last edited by
      #2

      This may help ?, lets say 7 users picked rating so , you add the seven picked values and divide them by the nubmer of users picked as: 1 - Picked 3 2 - Picked 4 3 - Picked 4 4 - Picked 2 5 - Picked 5 6 - Picked 4 7 - Picked 3 so the sum is = 27 ,and thier number is 7 sp : The raring is 27/7 which sequal to 3.83.... out of 5 . Hope that helps.

      T 1 Reply Last reply
      0
      • M MoustafaS

        This may help ?, lets say 7 users picked rating so , you add the seven picked values and divide them by the nubmer of users picked as: 1 - Picked 3 2 - Picked 4 3 - Picked 4 4 - Picked 2 5 - Picked 5 6 - Picked 4 7 - Picked 3 so the sum is = 27 ,and thier number is 7 sp : The raring is 27/7 which sequal to 3.83.... out of 5 . Hope that helps.

        T Offline
        T Offline
        thespiff
        wrote on last edited by
        #3

        Yep, I would assume rating to simply be the average of all the values as LongHC said. As for popularity, It really depends on what you're talking popularity relative to. Is an item popular if lots of people have purchased it from you site? Or is it popular if lots of people have viewed it? Or is it just popular because you say it is and you're using it as gimmick to sell things? (Like saying "Hey, this new CD is #1 on the Billboard charts, so we'll put it on top of our list of popular new releases") The question is what data are you basing "popularity" on?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups