Calculate average from a given set of keys and values
Hello,
I am writing a script which expects as its input a hash with student names as the keys and marks as the values. The script then returns array of average marks for student scored 60-70, 70-80, and over 90.
Output expected
The test script so far I have written looks like this
I am able to store the input as hash with keys and its values but not able to calculate the average and give the output as expected. Any suggestions would be appreciated.
Hi I have fakebook.csv as following:
F1(current date) F2(popularity) F3(name of book) F4(release date of book)
2006-06-21,6860,"Harry Potter",2006-12-31
2006-06-22,,"Harry Potter",2006-12-31
2006-06-23,7120,"Harry Potter",2006-12-31
2006-06-24,,"Harry Potter",2006-12-31... (0 Replies)
I have a file which is
2
3
4
5
6
6
so i am writing program in C to calculate mean..
#include<stdio.h>
#include<string.h>
#include <math.h>
double CALL mean(int n , double x)
main (int argc, char **argv)
{
char Buf,SEQ;
int i;
double result = 0;
FILE *fp; (3 Replies)
Hello,
I'm hoping to get some help on calculating an average time from a list of times (hour:minute:second).
Here's what my list looks like right now, it will grow (I can get the full date or change the formatting of this as well):
07:55:31
09:42:00
08:09:02
09:15:23
09:27:45
09:49:26... (4 Replies)
I want to calculate the average line by line of some files with several lines on them, the files are identical, just want to average the 3rd columns of those files.:wall:
Example file:
File 1
001 0.046 0.667267
001 0.047 0.672028
001 0.048 0.656025
001 0.049 ... (2 Replies)
Hi,
I want to find row-wise average of multiple columns based on 2 columns.
I have 30k values in the matrix with 94 cols.
Example Input for cols 4 and 5 as keys
1 2 3 a 1
4 5 6 a 1
4 2 0 a 1
1 2 3 b 2
5 6 7 b 2
9 7 5 b 2
Output
3 3 3 a 1
5 5 5 b 2Here is what I have tried,... (5 Replies)
Hey guys,
I have several huge tab delimited files which look like this:
a 1 20
a 3 15
a 5 10
b 2 15
b 6 10
c 3 23
what I am interested is to calculate the average of top n% of data in third column. So for example for this file the top 50% values are:
23
20
(Please note that it... (11 Replies)
Hello dears,
I have a log file with records like below and want to get a average of one column based on the search of one specific keyword.
2015-02-07 08:15:28 10.102.51.100 10.112.55.101 "kevin.c" POST ... (2 Replies)
Gents,
Please i will to get the distance and azimut from 2 coordinates:
Usig excel formula i get the correct values, but i will like to do it using awk.
Example
A 35089.0 50345.016 9 75 1 2101774 77 70 79 483911.6 2380106.9 137.4 1 1 6 1
A 35089.0 50345.01620 75... (8 Replies)
My old school way is a one liner. And will search for average from SAR, to get the data receive rate. But, I dont think it is practical or accurate,. Because it calculates to off peak hours. I am planning to change it. My cron runs every 30 mins. When my cron runs, and my time is 14:47pm,, it will... (1 Reply)
Discussion started by: invinzin21
1 Replies
LEARN ABOUT DEBIAN
twiglet
TWIGLET(1) User's Manual TWIGLET(1)NAME
twiglet - observe or control an RVC-enabled machine's console
SYNOPSIS
twiglet [OPTION]... host-specification
DESCRIPTION
twiglet is a program for controlling another machine's console. It works using the RVC protocol, and an RVC server (such as rvcd(1)) must
be running on the machine to be observed.
Using twiglet, the a best effort attempt is made to duplicate the screen contents of the observed machine. If the machine is displaying a
virtual text console, the text on the console is rendered in the terminal in which twiglet runs. If the machine is displaying an X ses-
sion, and the RVC server supports VNC integration, twiglet will open a window that contains the current contents of the X display.
It is also possible to control the observed machine in various ways. With keyboard control enabled (and with support from the RVC server),
keys may be sent to the observed machine in text console mode almost as if they were typed from the keyboard. Twiglet also supports
switching virtual console on the observed machine. Finally, if VNC integration is available, the X display can be manipulated almost as if
the user were at the console.
The intended use for twiglet is in training and teaching environments. The idea is that there are student machines and a control machine
(which the trainer or teacher would be using), with a serial line attached to each student machine. The trainer or teacher can then ana-
lyse the students' attempts to complete tasks, and help them out (showing them how to finish it) without needed to push them aside to get
to the keyboard.
This client is written using ncurses(3X).
OPTIONS --help display a help message and exit successfully
--version
display a version number and exit successfully
-c, --control
control the remote machine rather than just observing it
-e xy, --escape xy
set the escape character and the escape escape character (like screen(1))
The host-specification takes one of the following forms:
host:port
to connect to an RVC server over TCP
tty [host]
to communicate with an RVC server over a tty (for example a serial line); the optional hostname is for VNC integration
BUGS
I'm sure there are bugs, but I don't know what they are.
AUTHOR
Tim Waugh <twaugh@redhat.com>
VTGRAB 20 Sep 2000 TWIGLET(1)