Questions tagged [rescale]

155 questions
1
vote
1 answer

Python Rescale/Transform data

I need to rescale data from a specific range (-120, 14870) to (0, 512). I've been trying different methods but not one seems to be succesful, any ideas how can i get it done? Thanks in advance
L R
  • 23
  • 1
  • 3
1
vote
2 answers

How can I rescale dataframe so each row have magnitude of 1 in R?

This is sample of my matrix and my code. I want to rescale my dataframe so that the each row has magnitude 1. I'm new to r and in the tutorial the instructor said "divide each element of a row by the magnitude of the row." however I'm not sure how…
1
vote
2 answers

Rescale listboxes or other items? but not text (WPF)

The question is quite clear. I have listviews or listboxes in my view. If i make my screen smaller, i want that my text (labels etc) stay the same size. But the listviews and listboxes have to become smaller, eventually with a scrollbar? how do i do…
Ruben
  • 1,033
  • 3
  • 12
  • 22
1
vote
2 answers

Rescale multiple variable at once

I would like to rescale multiple variables at once. Each one of the variable should be rescaled between 0 and 10. My dataset looks something like this df<-structure(list(Year = 1985:2012, r_mean_dp_C_EU_PTA = c(0.166685371371432,0,…
Alex
  • 1,207
  • 9
  • 25
1
vote
2 answers

Is there a way to rescale the axes of a plot produced by plot.clusterlm (R)?

I have run cluster analysis on some time series data using permuco in R. (Permutes the labels of control/treatment conditions and calculates the F statistic as to how likely it is that these time clusters of significant differences occurred by…
vikka
  • 11
  • 2
1
vote
2 answers

Compare coordinates of two images of different size

I'm working with python and I need to compute an intersection over union taking into account a ground-truth and an anchor box (more in general two rectangles). The problem is that I generate my anchors on an image of size 53x64 while I have the…
Giorgio Di Rocco
  • 119
  • 1
  • 2
  • 7
1
vote
1 answer

How to save images in a folder with for loop?

First, I have an issue with saving up every resized file with the same name to the same folder? Second, while running I can't understand if m t code works properly. Please, could you check if I am doing the resizing properly?Can't find a mistake in…
Daria
  • 163
  • 1
  • 2
  • 8
1
vote
2 answers

Rescaling 2D numpy array as Dense representation

I have a numpy array . I want rescale the elements in the array, so that the smallest number in array is represented by 1, and largest number in array is represented by the number of unique elements in array. For example A=[ [2,8,8],[3,4,5] ] …
show_stopper
  • 288
  • 5
  • 17
1
vote
3 answers

Normalize by set standard deviation from mean of every column (excluding first)

I have a dataset below: A B C D 500 2 4 6 501 6 8 45 502 4 7 9 How do I normalize every column excluding the first to be normalized and have a set standard deviation from the mean of…
nak5120
  • 4,089
  • 4
  • 35
  • 94
1
vote
1 answer

Rescale vector without mean, sd, min and max

I have an asymetrical distribution : x <- c(rnorm(100, 0, 1), rnorm(100, 2.5, 0.5)) I would like to shift it so the old "0" value is now 100 and the old "2" value is now "15". However, I would like to do it without using old nor new min/max…
Dominique Makowski
  • 1,511
  • 1
  • 13
  • 30
1
vote
1 answer

Avoid floating point zero when summing scaled set of numbers in R

I am rescaling a set of numbers and want to avoid getting a floating point zero for the sum of the rescaled numbers: x <- c(-5, 1, 8) y <- scale(x) sum(y) # [1] 1.249001e-16 Is there a way to around this to force the sum to zero? I do not care…
user3343467
  • 185
  • 1
  • 2
  • 9
1
vote
1 answer

Enlarging a Bitmap

I would like to resize an image (Bitmap) with a minimum width and height and keep the ratio. For now I tryed some methods but I didnt get a correct result. The closest way was with this method: Bitmap.createScaledBitmap(bitmapToScale, newWidth,…
Sanders248
  • 51
  • 1
  • 7
1
vote
1 answer

Linear Regression With Feature Scaling

I have a general question about feature scaling in linear regression. I have a dataset that is two years worth of data. The first year's worth of data for a specific column is completely different than the 2nd year's. I am assuming that maybe there…
nak5120
  • 4,089
  • 4
  • 35
  • 94
1
vote
1 answer

rescale with ffmpeg but keep the pixel density constant

I have a 1280x720 video resolution After I resized the video output was blurred more than the original video How to output video is clearer
rinofcan
  • 323
  • 1
  • 3
  • 9
1
vote
1 answer

Calculate Windowing in DICOM

I'm implementing a DICOM-Image Viewer in C#. I don't (because I'm not allowed to) use any frameworks or libraries that do the image processing for me. With which algorithm can I calculate the windowing? (With Window Center and Window Width) I have…