Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Complex observables are not evaluable #12

Closed
hz-xiaxz opened this issue Jul 28, 2024 · 3 comments
Closed

BUG: Complex observables are not evaluable #12

hz-xiaxz opened this issue Jul 28, 2024 · 3 comments

Comments

@hz-xiaxz
Copy link
Contributor

Error occurs when evaluating complex observables.

ERROR: LoadError: MethodError: no method matching Carlo.Evaluable(::Int64, ::Int64, ::Int64, ::Vector{ComplexF64}, ::Vector{ComplexF64})

Closest candidates are:
  Carlo.Evaluable(::Int64, ::Int64, ::Int64, !Matched::Vector{T}, !Matched::Vector{T}) where T<:AbstractFloat
   @ Carlo ~/.julia/dev/Carlo/src/evaluable.jl:3

this is because of the definition of struct Evaluable

struct Evaluable{T<:AbstractFloat}
    internal_bin_length::Int64
    rebin_length::Int64
    rebin_count::Int64

    mean::Vector{T}
    error::Vector{T}
end

where

julia> ComplexF64 isa AbstractFloat
false
@hz-xiaxz
Copy link
Contributor Author

How to perform jackknife reasonably on complex number datasets is a question. I will try to find some reference later, or we should find another suitable way to resample complex numbers.

@lukas-weber
Copy link
Owner

lukas-weber commented Jul 28, 2024 via email

@lukas-weber
Copy link
Owner

lukas-weber commented Jul 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants