Questions tagged [rescale]
155 questions
0
votes
1 answer
Rescale a variable with median 1, minimum value 0 and no limit on the maximum value
I am new to statistics, so I excuse myself if this question is trivial
I have a variable that is normally distributed with a range between -15 and +15 like the following one:
df <- data.frame("weight" = runif(1000, min=-15, max=15),…

Alex
- 1,207
- 9
- 25
0
votes
1 answer
How do i change the scale of a variable?
one of my variables ranges from 1 to 5, the others from 0 to 10. For the ease of interpretation and comparison, i need to transform the scale of my variable so that all of them range from 0 to 10. How can rescale 1-5 to 0-10?

Sean Burgess
- 67
- 1
- 5
0
votes
1 answer
jqplot Yaxis rescale
I'm using jqplot for represent several parameters in series across the time. So I have one Xaxis represent the time and several Yaxes(yaxis, y2axis, y3axis, y4axis, etc.). Each parameter is in different units(temperature, voltage, current, pressure,…

iMarh
- 189
- 16
0
votes
1 answer
Unity collision while rescaling
What I am trying is to make an object being rescaled only from the top.
Here is what I have done using the gameobject parent method I got from here : https://stackoverflow.com/a/39217454/4322337
It is working just fine as we can see below:
But…

rilent
- 659
- 1
- 6
- 22
0
votes
1 answer
Change size of points in R using plot() with multiple added points()
The data is available here.
I am trying to generate the below plot (proportion of individuals~year), with the exception that I need to scale all the points (resF, resM, immF, and immM) to the number of observations for each column (resFN, resMN,…

Blundering Ecologist
- 1,199
- 2
- 14
- 38
0
votes
1 answer
Wordpress - Replace original image size with specified
I am currently trying to replace the original size of any image upload to my WordPress media gallery. I have tested 2 plugins (imsanity, resize image after upload) stating to resize the image, as well as various validated php scripts. Nothing seems…

phpnoob
- 1
- 2
0
votes
1 answer
Python Rescale Data
I am getting this error in the below code. I error that I receive doesn't give me any clue to address. Please help.
Error:
TypeError: '<' not supported between instances of 'str' and 'int'
Code:
from pandas import read_csv
from numpy import…

Chakra
- 15
- 5
0
votes
0 answers
R - Why changing distance between ticks don't change the shape of the graph?
I need to plot a simple graph in R (preferably using plot) with different distance between some x axis values. I have been trying to accomplish this using the axis function with "at" and "label" parameters. However, I think that the final result is…

Christian Masdeval
- 31
- 4
0
votes
1 answer
Rescale inserted PDF using FPDI in PHP
I am creating a PDF for our clients website. The PDF is paginated for an A4 print. At the end I need to insert several existing PDFs.
Using the FPDI library works fine except when the inserted PDF is wider than the the A4 width, it doesn't…
0
votes
1 answer
Algorithm for fast decompression & rescaling of jpeg image
Working on an application in uCLinux 2.4 to run in an IP camera. Need to grab an image from the videostream (MJPEG, MPEG4 or h.264), decompress it to raw format and rescale it to smaller size. Need to do this at 10-15 FPS but the processing capacity…

Brämpa
- 3
- 3
0
votes
1 answer
How to rescale image to draw with canvas?
If you have an idea ,
Starting from the code of this post In javascript , how to reverse y axis of canvas?( with the Flip rendered content solution)
i would like to draw this last image (200*200) in a 100*100 canvas, rescaling it using…

froggy
- 513
- 2
- 6
- 21
0
votes
1 answer
C# Downscale image to a certain number of pixels
I have some images that have more than, let's say 6.000.000 pixels and I want to scale them to be somewhere around that value.
public void downscaleByCalculateInSampleSize(string filePath, string newPath)
{
int reqNumberOfPixels =…

LAffair
- 1,968
- 5
- 31
- 60
0
votes
0 answers
How to Select Multiple, Specific Charts to be Re-Scaled in Excel with VBA?
I have some VBA code that allows me to re-scale the axes on several different charts. However, I'm trying to adjust that code so that I can select multiple charts to be re-scaled without having to duplicate the code.
A sample of the code I have so…

Chris G
- 1
0
votes
1 answer
How to rescale multiple attributes at the same time in R
I have a data set that contains multiple attributes with integer values from 1 to 5 and I would like to rescale these attributes so that their values range from -1 to 1. My current code that I have is
newdata$Rats = rescale(newdata$Rats, to =…

Brittany
- 5
- 4
0
votes
1 answer
Multiple line plots with different scales
I'd like to plot time-dependent trend of physical features of music.
For example,
from 1980 to 2010, the average song duration (unit: 100000 ms)
from 1980 to 2010, the average loudness (unit: 20dB)
You could see they come with different scales,…

LookIntoEast
- 8,048
- 18
- 64
- 92