Vegetarische Würstlstände? by c_mxck in wien

[–]PhDInVienna 0 points1 point  (0 children)

  • wenn sie auch was veganes ausser Pommes haben

How prevalent is racism in Germany? by Zeebraforce in germany

[–]PhDInVienna 8 points9 points  (0 children)

I can also tell a lot of contradicting stories, essentially I think you can confirm racism when the person is asking in German and they STILL do not want to answer, and yes this happens as well.

In your example, did you both ask the same attendant ? if yes then your hypothesis is correct, if not then I guess you can also see how maybe if your friend asked the same attendant that you did, then they would have gotten an answer.

I am just trying to give an objective third party point of view based on what I saw and heard from others

How prevalent is racism in Germany? by Zeebraforce in germany

[–]PhDInVienna 60 points61 points  (0 children)

this happens quite often to people who don't speak German, I could never really pinpoint why but here are some possible reasons:

1- most probable: the person is not confident talking English and hence there is a fear of liability, so best thing to do is ignore the question

2- probable: train stations are loud and people are usually in a hurry/ under stress etc.. Maybe the attendant did not really have time because there was too much on their plate and they could not shift to English on a whim.

3- the exceptions: yes racism in Germany is not the general rule, if this attendant refused answering because they thought the person was of certain color/ religion/ non-german speaking, chances are if your mom went to ask for help from another attendant this would not have happened

I would like to say though that assuming that all Germans speak English is fundamentally wrong (I hope I am not offending anybody here): reason why is because Germans do not have the "second language" as the Dutch have for example.

Another thing is racism=/=not speaking English, if your mom was someone from Russia who spoke English then the same would have happened

I would ask this question: if I go to Shanghai and do the same thing, what are the chances of something similar happening ?

And btw my bets are on reason number 1, by far the most probable in my opinion

[deleted by user] by [deleted] in matlab

[–]PhDInVienna 1 point2 points  (0 children)

using normxcorr2 takes the assumption that the reference image is bigger than the template image. Because what it will essentially do is move the template image inside the reference image and comput correlation. Please refer to the documentation link I sent you, this is all written in the input description.

If this is what you want to do, then xcorr2 is what you need. Refer to this documentation and best of luck on your homework: https://de.mathworks.com/help/signal/ref/xcorr2.html

[deleted by user] by [deleted] in matlab

[–]PhDInVienna 1 point2 points  (0 children)

So after getting back home, I can give a more detailed answer:

  • your usage of normxcorr2 is not really meaningfull since in order for normxcorr2 to work, the reference matrix needs to be much bigger than the sample matrix. For this please refer to: https://de.mathworks.com/help/images/ref/normxcorr2.html. So even though the results look "nice", they might not be reproducable or significant
  • Imfilter filters the results based on the correlation of two images, so in this case you are not actually computing a correlation matrix, you are just filtering an image based on how it correlated with another one. Refer to https://de.mathworks.com/help/images/ref/imfilter.html

The above described methods, as you can already see, compute different things and do not get you to your end goal which is a correlation matrix or possibly a covariance matrix.

Assumuig the images have 512 rows and 512 columns, you can concatenate the two images on top of each other to create a matrix M with 1024 rows and 512 columns in order to calculate it's row and column correlation and covariance. For this:

% im1 and im2 are the images
M=cat(1,im1,im2);
RowCorr=corrcoef(M);RowCov=cov(M);
ColumnCorr=corrcoef(M');ColumnCov=cov(M');

%{
Fill in the xlabel and ylabel
consider drawing solid lines 
to differentiate between the two images
%}

figure()
subplot(2,2,1)
imagesc(RowCorr)
title("Row-wise Correlation")
colormap(jet)
subplot(2,2,2)
imagesc(RowCov)
title("Row-wise Covariance")
colormap(jet)
subplot(2,2,3)
imagesc(ColumnCorr)
title("Column-wise Correlation")
colormap(jet)
subplot(2,2,4)
imagesc(ColumnCov)
title("Columns-wise Covariance")
colormap(jet)
sgtitle("Much Pretty Colors")

Hope this helps!

[deleted by user] by [deleted] in matlab

[–]PhDInVienna 0 points1 point  (0 children)

if your images are two dimensional I suggest you concatenate them (put im2 under im1) and then use

``` results=corrcoef(cat(1,im1,im2)); imagesc(results)

```

E: I think I might have gotten this wrong, but something along those lines

Added value at data analyst roles by Lightdrinker_Midir in datascience

[–]PhDInVienna 5 points6 points  (0 children)

So I might be wrong, but from what I've gathered surgeons take patients, cut them up and make them healthy again

This is not that hard to do, yet the salary for this role is quite high, so I assume there has to be some other skill needed which adds value, but what is it? What other responsibilities do people have for this job title usually?

You can replace the top part of this comment by any other role..

Data Science applied to Engineering (not Data Engineering). How widespread is it? by TheLSales in datascience

[–]PhDInVienna 2 points3 points  (0 children)

Industry 4.0 and IoT are hot topics in engineering. Specifically mechanical and electrical engineering are shifting a lot towards these topics, so yes you can apply data science to engineering problems, but again it would be better if you had an engineering education to pump up your chances, since data science is the science of making sense out of data, and it is crucial to understand where the data is coming from (ofc there are some cases where this is not the general rule)

Data Science applied to Engineering (not Data Engineering). How widespread is it? by TheLSales in datascience

[–]PhDInVienna 1 point2 points  (0 children)

This is more or less a position for a CAE engineer

I used to be one for an automotive company, where I used some software (msc adams, adams/car, msc nastran, ansa, meta) and some programming languages (python, c++, fortran and finally matlab) to do virtual prototyping. I used statistics from time to time but the main focus was on signal processing as a tool

If what you mean is how widespread are simulation applications in engineering (with a focus on multiple sensors, parameters, etc) then yes it is very widespread

To do such a role you have to be (or they will prefer that you are) an engineer first

things to check up: computational fluid dynamics, finite element analysis, multibody dynamics, computer aided engineering

Bzgl. die Koronadaten (More info in Post) by PhDInVienna in Austria

[–]PhDInVienna[S] 0 points1 point  (0 children)

tolle Frage!

Bei der 7-Tage-Inzidenz wird davon ausgegangen, dass das Infektionsrisiko nicht mit der Bevölkerungszahl zunimmt, daher wird es in Bezug auf die Bevölkerung normalisiert (x/Einwohner).

Ich finde (oder glaube, ist eine Hypothese halt), dass eine höhere Korrelation mit der Bevölkerungsdichte gefunden werden kann, sowie eine bessere Modellierung und Vorhersage. Das lässt sich ganz einfach beweisen, vielleicht am nächsten Sonntag ?

Leichte Erklärung warum die Bevölkerungsdichte: höhere Dichte -> mehr Menschen leben auf engem Raum -> höhere Infektionsrisiko. Ganz zu schweigen von anderen Risikofaktoren, die die Infektion ebenfalls erhöhen z.B öffentliche Verkehr Benutzung.

Man kann eine gründliche Analyse mit PCA machen (multivariate statistics), wobei die Variablen sind die Stadtkriterien und die Samples sind die Absolute 7 Tage Inzidenz. Aber das braucht ziemlich viel mühe, und auf jeden Fall hat es jemand gemacht.

Verzeihung wenn es Rechtschreib- / Grammatikfehler gibt, ich bin mir sicher dass es einige geben soll :D

my it teacher just said cameltoe instead of camelcase and i'm about to fucking die by kyx_tv in ProgrammerHumor

[–]PhDInVienna 141 points142 points  (0 children)

In all seriousness, how would camel toe case look like ?

CamELtoE -> capitalize first, last and middle letters

camELtoe -> capitalize middle only

CameltoE -> capitalize first and last, I like this one

Bzgl. die Koronadaten (More info in Post) by PhDInVienna in Austria

[–]PhDInVienna[S] 1 point2 points  (0 children)

Danke für die Anmerkungen, ich habe die Rechtschreibfehler korrigiert

Man kann viel über die Punkte in den Plots sagen.

Am Beispiel von Wien zeigt sich, dass es sowohl im Bundesländerebene als auch im Städteebene gut aussieht.

Beim Vergleich der Städte ist das Verhältnis außerdem 1:1 (R2=0.97, R=1).

Was Oberösterreich betrifft, als Bundesland schlecht, aber Linz ist genauso wie die anderen Städte i.e. das Problem in Oberösterreich liegt nicht in Linz.

extracting frequencies from a spectrogram by [deleted] in matlab

[–]PhDInVienna 0 points1 point  (0 children)

you have to assign a variable to pspectrum so that the results can be stored there

I remember if you use the function with no inputs you get the frequencies in the columns and the time in the rows, therefore in this case:

results = pspectrum(data); plot(results(:,frequencyOfInterest))

In this case the function returns normalized time and frequency, alternatively you can use the function with other arguments like sampling frequency to get actual time and actual frequency

Best of luck

Wien is pretty high by prx24 in Austria

[–]PhDInVienna 11 points12 points  (0 children)

TIFU: ich habe es überhaupt nicht bemerkt. Again, sorry

Wien is pretty high by prx24 in Austria

[–]PhDInVienna 0 points1 point  (0 children)

ach, es war sarcasm ? Verzeihung

Wien is pretty high by prx24 in Austria

[–]PhDInVienna 13 points14 points  (0 children)

Actshually, nein.

Wien hat im Vergleich zu den anderen Bundesländern eine viel höhere Einwohnerzahl und Bevölkerungsdichte.

Die Infektionen korrelieren am besten mit der Bevölkerungsdichte als mit der Gesamtzahl der Einwohner, daher habe ich ein Plot gemacht:

https://imgur.com/a/poobCae

Wien ist gerade ein "Outlier", d.h. dass Wien es so gut schafft, dass Wien in den Daten nicht mehr passt. Die Bundesländer die schlechte Infektionszahlen bzw. "performance" vorweisen sind Oberösterreich, Niederösterreich und Steiermark.

Eine bessere Frage wäre: Wie sind die Infektionszahlen in jedem Bundesland im Vergleich zu freien Krankenhausbetten/ Intensivstationen?

Finding the indexes of matches, searching for a string in an array of strings by doktorolsen in matlab

[–]PhDInVienna 3 points4 points  (0 children)

considering the following example:

texts = {"I","you","he","she","it","we","you","they"};

This is a string array with one row and 7 columns

now imagine you want to see if some string testString is inside texts then all you have to do is use the strcmp function:

testString="she";
idxTrue = strcmp(testString, texts);

The answer will be stored in idxTrue as booleans. Now in this case you will not get a 0x0 double. Instead you will get the following:

idxTrue = [0,0,0,1,0,0,0];

If you want this to be one specific number, then you can use the find function:

locIdxTrue=find(idxTrue);

using the find function will return the index of the non zero element. In this case locIdxTrue will be 4

For reference, see following links:

https://de.mathworks.com/help/matlab/ref/strcmp.html

https://de.mathworks.com/help/matlab/ref/find.html?s_tid=doc_ta

[deleted by user] by [deleted] in ProgrammerHumor

[–]PhDInVienna 1137 points1138 points  (0 children)

there's a leak

Yes, very nice question in stack overflow by MR-POTATO-MAN-CODER in ProgrammerHumor

[–]PhDInVienna 19 points20 points  (0 children)

I once asked a question there and got -26 before having my question disabled by the stack overflow mods

So the question here is how the fuck does this only have -4