This tag apparently is used as a synonym for "minimax", which seems more appropriate and is better maintained; I would suggest introduction of a tag synonym.
Questions tagged [minmax]
272 questions
1
vote
3 answers
how to limit(clamp) struct values in C
I would like to find an efficient way to limit the values of the members in a struct. So far I am checking all the members one by one with "if-esle if" for min max values
if(months.January>31)
{
January=31
}
else…

Spitfire1.2
- 107
- 5
1
vote
2 answers
What's the difference between minmax() and clamp() in CSS?
Both CSS functions clamp the value between an upper and lower bound.
The only difference that I know is that minmax() can only be used in CSS grid.

user13397022
- 107
- 1
- 5
1
vote
1 answer
How does maximum_filter1d work in scipy? How does cval, origin, mode parameter affect it?
Documentation link:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.maximum_filter1d.html#r4df4f294a847-2
The example given in the documentation is,
>>> maximum_filter1d([2, 8, 0, 4, 1, 9, 9, 0,1], size=3)
array([8, 8, 8, 4, 9, 9,…

Sanjay S
- 51
- 5
1
vote
0 answers
Python tic tac toe minmax algorithm not optimizing at all?
I have been working on this tic-tac-toe min max project for the past couple days. Right now the program runs but the computer opponent is just choosing the first available space in number order instead of actually optimizing. Would reccomend…

Lance Borden
- 11
- 2
1
vote
2 answers
Min/Max Tic Tac Toe
I am creating a tic tac toe with min/max so I can expand it to alpha-beta pruning. So during my min/max I find if a path with lead to +1 (X win) -1 (O win) or 0 (Draw) however for a board config such as this:
During 0 turns it picks the bottom left…

GSingh
- 176
- 1
- 8
1
vote
1 answer
Grading Software Keeps Flagging Answer - Integers Between Min and Max of Data in R
Good day, the following is the problem I am trying to answer.
"Which integer values are between the maximum and minimum heights? For example, if the minimum height is 10.2 and the maximum height is 20.8, your answer should be x <- 11:20 to capture…

Ochemwiz
- 11
- 1
1
vote
2 answers
Adding Regular Expression minimum & maximum string limit to "\n" in word boundaries validation
If inputted text doesn't match with my pattern:
^(\b[\n]\w*\s*)+$
Which is if finding \n character in the inputted text then the text will not be validated, but I want to add min and max length to all whole string. I expect if the text doesn't…

Guinglain
- 15
- 5
1
vote
0 answers
inverse minmax trnsformer show an error **ValueError: non-broadcastable output operand with shape (18,1) doesn't match the broadcast shape (18,27)**
I use MinMax transformer to the data with one 27 coulmn but i use only one column for train and prediction and then use lstm to predict the test values. but when i use inverse transform minMax to the prdiction values of (18,1) shape. it show an…

Hala Hamdoun
- 11
- 1
- 6
1
vote
0 answers
How to normalize numpy array columns differently?
I have a NumPy array and I want to normalize each column differently. Means 1st column should be normalized between 0 to 1, second and third between -1 to 1 and 4th column between 0 to 1. How can I do it? MinMaxScaler scale every column between 0 to…

A R.
- 313
- 3
- 12
1
vote
1 answer
select earliest date and latest date dependant on ID column in R
Dataset
structure(list(x = c(1, 5, 2, 2, 4, 2, 5, 5, 4, 2, 1, 4, 3, 5,
4, 1, 2, 3, 1, 3), y = structure(c(13520, 17333, 17422, 17096,
17096, 18140, 11899, 11759, 17422, 15302, 12547, 17096, 17152,
17096, 12547, 11423, 15302, 17422, 13867, 12547),…

tacrolimus
- 500
- 2
- 12
1
vote
1 answer
Negamax Cut-off Return Value?
I have a problem with my Negamax algorithm and hope someone could help me.
I'm writing it in Cython
my search method is a following:
cdef _search(self, object game_state, int depth, long alpha, long beta, int max_depth):
if depth == max_depth or…

Pascal Sochacki
- 69
- 1
- 5
1
vote
2 answers
Checking min max without using function or list in python
min1=0
max1=0
while True:
num=input("enter a number")
if (num=='done'):
break
elif (num.isdigit()==False):
print("sorry enter integers or done")
elif (int(num)>max1):
max1=num
elif (int(num)

Priya
- 23
- 4
1
vote
1 answer
How to find min/ max value and create a list (python)
Please ignore my un-used import!
I tried to create a list to find min and max of "pa_walk" but I just could figure how to do it, everytime I tried it said error.
import random
from math import sqrt
from math import hypot
import…

Gwen L.
- 23
- 6
1
vote
0 answers
how to prevent grid image from getting too big if using 1fr with minmax()
This CSS almost does what is needed:
always fill the container 100% so no margin is seen.
resize images to fill the container without media queries or calculations.
but certain screen sizes create a larger image than is wanted
.grid-container {
…

user1864734
- 135
- 3
- 13
1
vote
0 answers
Finding highest / lowest position
I have coordinate system, where I need to find: lowest X, highest X, lowest Y and highest Y position.
There is also rotation, which is needed to check also, rotations are '0' or '90'. These X and Y points is at middle of my thing, so i need to…

JubinBlack
- 353
- 1
- 2
- 6