Skip to content

Commit

Permalink
mean of TNDistributions
Browse files Browse the repository at this point in the history
  • Loading branch information
jangevaare committed Mar 9, 2020
1 parent dfa9d66 commit a555072
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types/Transmissions/TransmissionNetworkDistribution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ struct TransmissionNetworkDistribution
function TransmissionNetworkDistribution(x::Vector{TransmissionNetwork})
return new(mean([y.external for y in x]), mean([y.internal for y in x]))
end

function TransmissionNetworkDistribution(x::Vector{TransmissionNetworkDistribution})
return new(mean([y.external for y in x]), mean([y.internal for y in x]))
end
end

const TNDistribution = TransmissionNetworkDistribution
Expand Down

2 comments on commit a555072

@jangevaare
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/10789

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.5 -m "<description of version>" a5550729d789e7485c9c06a0abae9a006f155bbb
git push origin v0.4.5

Please sign in to comment.