Questions tagged [spectral]
145 questions
0
votes
1 answer
Stoplight Spectral - using logical OR in rules via function
I want to achieve, that a rule fulfills two conditions connected with an or. I defined these conditions as functions.
How do I achieve this?
I tried to "import" the two functions into a third function which i then referenced in the rule, but js wont…

agruenth
- 1
- 1
0
votes
1 answer
JSONPath find nodes that do not contain a string
I am using stoplight spectral to create rules for linting OpenAPI documents, spectral uses JSONPath plus. I have been using http://jsonpath.com/ to test my JSONPath. I am trying to find urls in this document that do not have the word pet in the…

Gregg
- 3
- 3
0
votes
0 answers
Differentiation with Fourier Sine Transform (FFTW)
How can we calculate the first derivative of a function with FFTW_RODFT00 (sine transform)?
I have some luck calculating the 2nd derivative because sqrt(-1)^2 = -1 and whilst working with imaginary values, this returns an imaginary value that we can…

Heraldine
- 31
- 1
0
votes
1 answer
Specify time series parameters for data over millions of years
I have foram delta 18O data over 6 million years, with one datapoint every 0.003 Myrs, like this:
Age (Myr) | d18O
0 | 3.43
0.003 | 3.37
0.006 | 3.54
0.009 | 3.87
0.012 | 4.36
0.015 | 4.90
0.018 | 5.01
0.021 |…

Nicola Gambaro
- 53
- 6
0
votes
1 answer
Never ending for loop in Python
I have a code that basically takes two images,big image and small image. the small image is being reduced into one row image and then is being subtracted from each row of the big image. The result should be new big- image with different…

Reut
- 1,555
- 4
- 23
- 55
0
votes
1 answer
Extending rules using SPectral
I am following Spectral's documentation and I am trying to add my custom rule as an extension to oas3 ruleset, it looks like rule from the documentation is completely ignored.
My OpenApi 3.0 spec file:
openapi: 3.0.2
info:
title: Project info
…

zolv
- 1,720
- 2
- 19
- 36
0
votes
1 answer
how to make/create ground truth image file for training Hyperspectral image data?
Need to train hyperspectral data, how can I build a training dataset from scracth and a ground truth array/image to be used for the same? Spectral python doesn't support training by png files.

fruitspunchsamurai
- 11
- 5
0
votes
1 answer
Mean of an array excluding certain columns IDL
Hi I'm trying to write simple for loop with if loop to only calculate the mean of an array column wise (so i end up with just one row array as a mean), except column number 1051 and 1552. Here the input array has 2151 columns and 12 rows. The result…
0
votes
0 answers
standard scaling data before when using spectral biclustering in scikit learn?
Hej,
I have a dataset from different cohorts and I want to bicluster them with the sklearn function Spectral Biclustering.
As you can see in the link above this approach is using a kind of normalization to calculate the SVD.
Is it necessary to…

Theodor
- 1
- 2
0
votes
0 answers
Transpose data frame in sparklyr to use ml_corr on rows
I would like to make a similarity matrix of a big data for spectral clustering. To do so I am going to use ml_corr in sparklyr.
The problem is that ml_corr does the correlation on the pairwise columns, while I want to do it on rows.
my option…

Naghmeh
- 1
- 2
0
votes
0 answers
Spectral and electrical graph theory
I do understand that there is a big analogy between graphs and electrical circuits, so that nodes are being treated as voltage sources and edges as resistor, where each resistor has a conductance that is denoted as the weight of an edge in a graph.…

SAS
- 1
0
votes
0 answers
How to subtracting two hyperspectral image?
I would like to subtracting two hyperspectral images with different shapes using numpy and spectral python,
var1 = np.subtract(arrWHITEREF, arrImg)
but it shows me an error that operation can not be broadcast together because of different…

CyberMan
- 63
- 8
0
votes
1 answer
Are there conditions under which the subtrees produced by spectral (Fiedler vector) bisection are disconnected?
I am trying to partition an undirected tree into two subtrees, where each subtree is connected. My understanding was that this could be done using the Fiedler vector as described here. However, when I follow this process the resulting subtrees are…

DrJSomeday
- 11
- 2
0
votes
1 answer
Segementing a 3-D matrix with MATLAB
I have a 3-D matrix representing a hyper-spectral image: 2 dimensions represent different pixels, and 1 dimension represents different spectral bands.
I need to segment this image in the following way:
1. divide the image, pixel-wise, into 2…

Gil
- 143
- 2
- 9
0
votes
0 answers
Impossible to set the gamma parameter for the spectral_clustering function in sklearn 0.18.1
I am doing some clustering using the scikit-learn (aka sklearn) and everything worked fine until I tried to play with the gamma parameter of the spectral_clustering function.
I am using sklearn (0.18.1) with python (3.5.2) in a virtual environment…

Lucas Vandroux
- 51
- 8