My Math Forum  

Go Back   My Math Forum > Science Forums > Computer Science

Computer Science Computer Science Forum

LinkBack Thread Tools Display Modes
January 17th, 2016, 06:47 PM   #1
Joined: Jan 2016
From: Texas

Posts: 1
Thanks: 0

Adding weight to a value between two limits

It's been a while since I've taken a math course and I need help.

I am trying to develop an algorithm that will look at a file, run it through 50 antiviruses, get the ratio of what detected it as "bad," add weight to the value based on those AV's that were deemed "reliable" and limit the value between 1 and 10. Obviously a lower detection rate (e.g. 15/50) would have a higher score if 4 of the AV's were "reliable" compared to a higher detection rate (40/50) since those AV's would probably be among the list.

Last edited by skipjack; January 17th, 2016 at 11:07 PM.
jstauffer is offline  
May 22nd, 2016, 02:37 AM   #2
Senior Member
Joined: Aug 2012

Posts: 229
Thanks: 3

Hey jstauffer.

If you scale every value by the sum of all the values you will always get a total one one.

You can multiply that by some number (like N = 10) to get it between 0 and 10 and you can adjust to be 1-10 by multiplying it by N = 9 and adding 1.

This is the simplest way of doing a linear combination of linear weighted variables to lie in that kind of interval.
chiro is offline  

  My Math Forum > Science Forums > Computer Science

adding, limits, weight

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding functions fsswim1 Pre-Calculus 2 September 20th, 2014 03:47 PM
Adding Sin waves DaveJames Algebra 5 March 26th, 2014 06:34 PM
Adding Vectors bilano99 Calculus 3 January 11th, 2012 06:21 PM
adding exponents andi7 Algebra 2 March 12th, 2009 08:59 PM

Copyright © 2017 My Math Forum. All rights reserved.