Questions tagged [weighting]
81 questions
-1
votes
1 answer
Linq operator to aggregate matching value and weight them
Working code.
double[] confirmingList = new double[] { -3, -2, -1 };
var Tdb = rDatas
.Select(d => new
{
TScore = (new List {
d.T15Min, // Let this count .2
d.T30Min, //…

SuperDave
- 373
- 5
- 14
-1
votes
1 answer
error in coding probability weighting function
I have a question regarding my code (sorry if it is really easy or stupid, I have never coded before and tried this for a project). I tried running a probability weighting function for certain probability vector. I however get an error and I do not…

Elisabeth
- 23
- 6
-1
votes
1 answer
Weight optimization to find out least squared error in R
I have actuals and four different models with their prediction & fitted values. With these fitted values, I want to find optimal weights so that (summation(wifi)-actuals)^2 is minimized. Here wi's are the weights I want to find optimally & fi's are…

Hindol Ganguly
- 363
- 1
- 4
- 16
-1
votes
1 answer
error c# serial port display weighting scale continuously to richtextbox
I'm trying to read the data weighing scale to my computer using c# serial port.
in putty output like this :
60KG
60KG
60KG
60KG
then i display it in richtextbox using the script below:
private void SerialPortOnDataReceived(object sender,…

Egi
- 513
- 2
- 6
- 16
-1
votes
5 answers
How can I create a Python function with variable arguments
I want to create a weighting function in Python. However the amount of weighting varies and I need the function to have optional parameters (for instance, you could find the cost of weightA and weightB, but you could also find all of the above.
The…

ustroetz
- 5,802
- 16
- 47
- 74
-2
votes
2 answers
R Eigenvector Centrality with Weight
I'm woking with R and the eigenvector centrality algorithm from the igraph library. We have the following sql table :
person1 / person2 / score
A / B / 0.568
A / C / 1.233
B / A / 0.798
B / C / 0.493
C / A / 1.367
C / B / 1.276
The values…

Omar
- 55
- 2
- 6