Questions tagged [dimensions]

Dimensions of an array define its size and shape -- the arangement of elements in the array. Use this Tag for questions regarding the shape of arrays.

1238 questions
-1
votes
1 answer

Dimension of a function

Because this would simplify my code only slightly, I'm mainly asking out of curiosity. Say you have a function f <- function(x) { c(x[1] - x[2], x[2] - x[3], x[3] - x[1]) } Is there a way of finding out the dimension of the input…
Pascal
  • 563
  • 1
  • 3
  • 15
-1
votes
3 answers

How and when should I use different database types (and where can I find them)?

Recently, I was reading about the ways to optimize and best use a relational database. I was trying to fit a multidimensional array into my database and that point, and I came upon this Wikipedia page about different types of database systems (for…
-1
votes
2 answers

Change array dimensions, using spreadsheet functions, when used inside SUMPRODUCT

I am interested in spreadsheet functions, not VBA solutions, to be included in a single cell formula. [A1:A15 contain numeric values from 1 to 127, B1:B15 contain integers from 1 to 7 that set a divisor.] Given the…
-1
votes
1 answer

Itext rectangle from milimeters

I try draw a A5 rentangle in a PDF with Itext using Rectangle class and Utilities.milimetersToPoints method but when i print the PDF and measure the rectangle the measurments is not the A5 dimensions. public static boolean createPDF(String pathPDF)…
Javetor
  • 25
  • 1
  • 4
-1
votes
2 answers

Right @2x for retina 4 hd

When creating PSD mockups for iPhone, what is the expected width of the design ? What are the right dimensions to use ? My designers usually provide me with designs which are 640px and 72ppi, and i feel this is not right. Even if their design is…
user3312949
  • 145
  • 1
  • 9
-1
votes
1 answer

Merging patient data based on IDs from 4 dimensions into 1 new dimension - there are problems however

I have 4 dimensions with patient data. In each dimension there's an ID for the patients. The only problem is that I have no idea how to merge the 4 dimensions into 1 new dimension. I would use a merge join, but that doesn't work since I also have…
-1
votes
1 answer

how to retrieve image dimensions before uploading it cloudinary

I need to validate image dimensions before uploading it to cloudinary as I am using direct uploading from the form. $(".cloudinary-fileupload").fileupload( # disableImageResize: false, imageMinWidth : 460 imageMinHeight: 230 acceptFileTypes:…
-1
votes
1 answer

What is the recommended way to get screen dimension on android

Having done some research, I come up with the following three methods for getting screen size of an android device. But it's still not clear to me which one to use in which condition. Are they all equivalent? is one faster than the other? What's the…
learner
  • 11,490
  • 26
  • 97
  • 169
-1
votes
1 answer

Dimensions when developing for smart watches

Hi I am doing research into developing for smart watches for an upcoming project i may be undertaking. I am looking to develop a custom launcher for a smart watch to be used as the main interface that the user interacts with. I have done my research…
MarcD
  • 65
  • 8
-1
votes
1 answer

Is it OK to use Fold without reducing number of dimensions?

For example, one wants to use Fold function to implement an unique (or DeleteDuplicates) function, which accepts 1-dimensional array and returns the same, but shorter. I am against it, but I can't find proof in any Wikipedia, why it is a bad…
Nakilon
  • 34,866
  • 14
  • 107
  • 142
-1
votes
1 answer

Javascript stage scale calculator

I've searched far and wide throughout the web thinking that somebody may have had a similar need, but have come short. I'm needing to create a calculator that will adjust the size of a stage for draggable objects based on a Width and Height field…
wdews
  • 352
  • 2
  • 17
-1
votes
1 answer

Data warehouse design, multiple dimensions or one dimension with attributes?

Working on a data warehouse and am looking for suggestions on having numerous dimensions versus on large dimension with attributes. We currently have DimEntity, DimStation, DimZone, DimGroup, DimCompany and have multiple fact tables that contain…
maguy
  • 1,599
  • 1
  • 15
  • 26
-1
votes
1 answer

Measuring the distance between matrices with different dimensions

I have two matrices, one matrix with values ranging from 0-1, and another having only values of 0 and 1. I'm interested in calculating the distance only to those pixels equal to 1. In this case, I thought of making a new matrix that only contains…
Simplicity
  • 47,404
  • 98
  • 256
  • 385
-1
votes
1 answer

Share layout dimensions between custom views?

So i have two custom views. I need to know the pixel dimensions of my custom view and i got it the following way: protected void onSizeChanged(int xNew, int yNew, int xOld, int yOld) { width_dimension = xNew; // << this is the field…
-1
votes
1 answer

From starschema ETL to Datawarehouse

We are busy with an project for school. we have to build an Datawarehouse but im stuck. I have the following starschema: dim_location: Location_key(Primary key) City dim_condition: Condition_key(primary key) Description(Example: Good, Bad, Very Bad,…