This is the cronjob
----------------------
root@a7germ:/home/paxtemp > crontab -l|grep test
57 * * * * /home/paxtemp/test_1.sh
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/paxtemp/test.sh
root@a7germ:/home/paxtemp >
This is the contents of test.sh script... (2 Replies)
Hi All
I like to know how can we calculate the number of rows and the average of the values present in the file. I will not know what will be the rowcount, which will be dynamic in nature of the file.
eg.
29
33
48
30
28 (6 Replies)
Dear all,
i have 200 values in a file. How can i calculate a weighted average and output into a new file avg.dat?
INPUT:
file1.dat
1.3453
2.434
2.345
.....
OUTPUT:
avg.dat
file1: 1.762
Thanks.
Po (3 Replies)
Hey guys.....
I have many files (lets say 100 or more) of same size, and I want to create a new output file and calculate the average of first row fifth column in all files and print it in first row of output file, then 2nd row fifth col in all 100 files and print it in 2nd row of output... (1 Reply)
Is there an awk script that can easily perform the following operation?
I have a data file that is in the format of
1944-12,5.6
1945-01,9.8
1945-02,6.7
1945-03,9.3
1945-04,5.9
1945-05,0.7
1945-06,0.0
1945-07,0.0
1945-08,0.0
1945-09,0.0
1945-10,0.2
1945-11,10.5
1945-12,22.3... (3 Replies)
Hi
I have file like below
111,victor,48,12,36
342,Peter,54,58,30
476,Scott,25,36,48
567,Patty,74,17,95
I have written below code to calcualte avereage for every id
Victor = 48+12+36/3
#!/bin/ksh
/usr/xpg4/bin/awk '
BEGIN {FS=","} {sum=0; n=0;i=3 (1 Reply)
Can anyone explain what each line of the code does and how it works? I have no experience with python so I am not sure how the arrays and such work. I found this code while looking through the forums.
f = open("exams","r")
l = f.readline()
while l:
l = l.split(" ")
values = l
... (22 Replies)
Discussion started by: totoro125
22 Replies
LEARN ABOUT MOJAVE
mpscnnpoolingaverage
MPSCNNPoolingAverage(3) MetalPerformanceShaders.framework MPSCNNPoolingAverage(3)NAME
MPSCNNPoolingAverage
SYNOPSIS
#import <MPSCNNPooling.h>
Inherits MPSCNNPooling.
Instance Methods
(nonnull instancetype) - initWithDevice:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:
(nullable instancetype) - initWithCoder:device:
Properties
NSUInteger zeroPadSizeX
NSUInteger zeroPadSizeY
Additional Inherited Members
Detailed Description
This depends on Metal.framework Specifies the average pooling filter. For each pixel, returns the mean value of pixels in the kernelWidth
x kernelHeight filter region. When edgeMode is MPSImageEdgeModeClamp the filtering window is shrunk to remain
within the source image borders. What this means is that close to image borders the filtering window
will be smaller in order to fit inside the source image and less values will be used to compute the average. In case the filtering window
is entirely outside the source image border the outputted value will be zero.
Method Documentation
- (nullable instancetype) initWithCoder: (NSCoder *__nonnull) aDecoder(nonnull id< MTLDevice >) device
NSSecureCoding compatability See MPSKernel::initWithCoder.
Parameters:
aDecoder The NSCoder subclass with your serialized MPSCNNPooling
device The MTLDevice on which to make the MPSCNNPooling
Returns:
A new MPSCNNPooling object, or nil if failure.
Reimplemented from MPSCNNPooling.
- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(NSUInteger) kernelWidth(NSUInteger) kernelHeight(NSUInteger)
strideInPixelsX(NSUInteger) strideInPixelsY
Initialize a MPSCNNPoolingAverage pooling filter
Parameters:
device The device the filter will run on
kernelWidth The width of the kernel. Can be an odd or even value.
kernelHeight The height of the kernel. Can be an odd or even value.
strideInPixelsX The output stride (downsampling factor) in the x dimension.
strideInPixelsY The output stride (downsampling factor) in the y dimension.
Returns:
A valid MPSCNNPooling object or nil, if failure.
Reimplemented from MPSCNNPooling.
Property Documentation
- zeroPadSizeX [read], [write], [nonatomic], [assign]
How much zero padding to apply to both left and right borders of the input image for average pooling, when using
See also:
edgeMode MPSImageEdgeModeClamp. For
edgeMode MPSImageEdgeModeZero this property is ignored and the area outside the image is interpreted to contain zeros. The zero padding
size is used to shrink the pooling window to fit inside the area bound by the source image and its padding region, but the effect is
that the normalization factor of the average computation is computed also for the zeros in the padding region.
- zeroPadSizeY [read], [write], [nonatomic], [assign]
How much zero padding to apply to both top and bottom borders of the input image for average pooling, when using
See also:
edgeMode MPSImageEdgeModeClamp. For
edgeMode MPSImageEdgeModeZero this property is ignored and the area outside the image is interpreted to contain zeros. The zero padding
size is used to shrink the pooling window to fit inside the area bound by the source image and its padding region, but the effect is
that the normalization factor of the average computation is computed also for the zeros in the padding region.
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSCNNPoolingAverage(3)