minimum Questions

4

Solved

Is there any way to rewrite this more elegant? I think, that it's a bad piece of code and should be refactored. >> a = [2, 4, 10, 1, 13] => [2, 4, 10, 1, 13] >> index_of_minimal_val...
Furlong asked 11/2, 2011 at 0:12

1

I have a question and I could not find the answer on the internet nor on this website. I am sure it is very easy though. Let's say I have a set of 20 numbers and I have them in a 5x4 matrix: numb...
Bally asked 27/3, 2015 at 13:32

3

Solved

Is it possible to set minimum and maximum limit of a value (suppose it is unsigned short and I need a value between 0 and 10) as I can set default value by opt::value<unsigned short>()->d...
Pyrrhuloxia asked 28/8, 2014 at 11:50

3

Solved

Given positive integers from 1 to N where N can go upto 10^9. Some K integers from these given integers are missing. K can be at max 10^5 elements. I need to find the minimum sum that can't be form...
Angieangil asked 2/1, 2015 at 18:8

3

Solved

I am using Matlab 2012a. I have an array of k cells (say 1000). I need to find the 5 lowest values of this array and need to do an average of those values in X and Y. Anyone has an idea how to do...
Saint asked 8/2, 2013 at 14:34

2

Solved

I'm wondering: Is there some function/clever way to find the smallest ellipse covering a given fraction of a set of 2d points in R? With smallest I mean the ellipse with the smallest area. Clarifi...
Greiner asked 7/11, 2014 at 21:6

1

Solved

For Cassandra, there is a minimum requirement of three nodes to enable writes with strong consistency, assuming a replication factor of one (i.e. two copies of the dataset). This requirement does n...
Eklund asked 30/10, 2014 at 16:58

4

Solved

How can I find the index of the minimum item in a Python list of floats? If they were integers, I would simply do: minIndex = myList.index(min(myList)) However, with a list of floats I get...
Hildebrand asked 9/11, 2012 at 1:45

1

Solved

I'm having some trouble trying to do some custom validation with a select2 jQuery plugin I need to force user to select at least 2 items from the list. The select2 plugin has a property maximumSel...
Lamartine asked 13/5, 2014 at 15:12

3

Solved

This question is close to mine, but not quite: List minimum in Python with None?. I need to allow for the possibility of all values in the list being None. I have a situation where I have to look ...
Orogeny asked 27/1, 2014 at 2:49

2

Solved

I have a matrix like so: Only in reality it is hundreds or thousands of values. What I need to do is return the minimum value for each row, along with the row/col name. So for row 1 in the exa...
Rudman asked 26/11, 2013 at 7:19

4

Solved

I would like to find the lowest value in some range. Do I have to iterate array each time or is there any dynamic method? Lets say I have input array: index: 0 1 2 3 4 5 6 7 value: 1 4 6 1 6 7 2 ...
Attwood asked 3/11, 2013 at 18:35

3

Solved

I have the following table: Table1 Table2 CardNo ID Record Date ID Name Dept 1 101 8.00 11/7/2013 101 Danny Green 2 101 13.00 11/7/2013 102 Tanya Red 3 101 15.00 11/7/2013 103 Susan Blue 4 1...
Thorndike asked 17/10, 2013 at 3:50

2

Solved

Simple question: will the following code work for finding the minimum value in an array of doubles (assume at least one value exists): double[] values = ... double currentMin = Double.POSITIVE_IN...
Deluna asked 13/9, 2013 at 20:54

5

Hi I want to get the lowest 3 elements of an array. By lowest I mean the minimum value. I cannot use the collections.Sort method as I need to know the index of the elements. Therefore I am using th...
Simonnesimonpure asked 2/12, 2012 at 22:22

8

My site displays just like I need it to in IE and Opera, but in Firefox I can't use CSS to get font sizes smaller than Firefox's default minimum-font-size. Of course, I can go to Tools → Options an...
Aerophyte asked 10/3, 2010 at 22:15

3

Solved

I am going to generate 10^6 random points in matlab with this particular characters. the points should be inside a sphere with radius 25, the are 3-D so we have x, y, z or r, theta, phi. there is a...
Overset asked 8/2, 2013 at 19:54

2

Solved

Having 2-dimensional array,A, I want to find minimum number in the array. However I can have more than one of that number. How can I find the [row col] of all minimum value? Example: 2 3 4 2 1 6 7...
Selfinduced asked 7/1, 2013 at 23:16

5

Solved

Having an array of for instance 4 integers how can one determine it's non-zero minimum - in the fastest way ?
Crambo asked 15/1, 2012 at 3:33

6

There is a network of towns, connected by roads of various integer lengths. A traveler wishes to travel in his car from one town to another. However, he does not want to minimize distance traveled...
Caespitose asked 17/8, 2012 at 16:17

1

Solved

I have a NumericUpDown variable in my class. The minimum and maximum values are set as follows: myNumericUpDown.Maximum = 9999; myNumericUpDown.Minimum = 0; This prevents the spin box from excee...
Elseelset asked 19/8, 2012 at 7:14

1

Solved

Hey this is a quick and easy question... How would i find the minimum value of this matrix, excluding 0? As in, 8 arr = numpy.array([[ 0., 56., 20., 44.], [ 68., 0., 56., 8.], [ 32., 56., 0., 44...
Chariness asked 1/8, 2012 at 17:14

2

Solved

I was working on an embedded project when I ran into something which I thought was strange behaviour. I managed to reproduce it on codepad (see below) to confirm, but don't have any other C compile...
Irinairis asked 18/7, 2012 at 7:32

2

Solved

I am working on Storyboards.I need to know the minimum version of ios that i can set befor making the Build and submit on App store.Can i use ios 4.0 as a target.Will it run on version below ios 5....
Sickener asked 4/6, 2012 at 6:29

3

Solved

Assume I have variables $a, $b, $c and $d which all hold numbers. I would like to get the smallest (largest) value. My typical XSLT 1.0 approach to this is <xsl:variable name="minimum"> &lt...
Ceaseless asked 27/4, 2012 at 16:45

© 2022 - 2024 — McMap. All rights reserved.